mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-15 00:50:25 +02:00
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:
committed by
Cuong Manh Le
parent
3ca754b438
commit
8491f9c455
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user