Deactivation pin fixes

- short control socket name.(in IOS max length is 11)
- wait for control server to reply before checking for deactivation pin.
- Added separate name for control socket for mobile.
- Added stop channel reference to Control client constructor.
This commit is contained in:
Ginder Singh
2024-02-11 16:37:25 -05:00
committed by Cuong Manh Le
parent 3ca754b438
commit 8491f9c455
3 changed files with 43 additions and 12 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func mapCallback(callback AppCallback) cli.AppCallback {
}
func (c *Controller) Stop(Pin int64) int {
errorCode := cli.CheckDeactivationPin(Pin)
errorCode := cli.CheckDeactivationPin(Pin, c.stopCh)
if errorCode == 0 && c.stopCh != nil {
close(c.stopCh)
c.stopCh = nil