Fix client disconnect on setting state to N/A when in RX mode. Speed-up server relogin on manager on reconnect.
This commit is contained in:
parent
795dae9aa2
commit
1b159278c5
|
@ -21,6 +21,7 @@ class CustomManagerClientFactory(FRNManagerClientFactory):
|
||||||
|
|
||||||
def managerConnected(self, connection):
|
def managerConnected(self, connection):
|
||||||
def authReply(auth):
|
def authReply(auth):
|
||||||
|
self.resetDelay()
|
||||||
self.authResult = auth
|
self.authResult = auth
|
||||||
self.authDone = (auth['al'] == '0')
|
self.authDone = (auth['al'] == '0')
|
||||||
if self.authDone:
|
if self.authDone:
|
||||||
|
|
|
@ -146,6 +146,8 @@ class FRNServer(BufferingLineReceiver, TimeoutMixin):
|
||||||
|
|
||||||
def decodeST(self, body):
|
def decodeST(self, body):
|
||||||
log.msg("Set status = %d" % int(body))
|
log.msg("Set status = %d" % int(body))
|
||||||
|
if int(body) > 1:
|
||||||
|
self.startPinging()
|
||||||
self.factory.tracker.setStatus(self.user.ID, int(body))
|
self.factory.tracker.setStatus(self.user.ID, int(body))
|
||||||
|
|
||||||
def decodeTM(self, body):
|
def decodeTM(self, body):
|
||||||
|
|
|
@ -78,7 +78,7 @@ class FRNCrosslinkClient(FRNClient):
|
||||||
ml = []
|
ml = []
|
||||||
ml.append("Last active talkers (most recent first):")
|
ml.append("Last active talkers (most recent first):")
|
||||||
for n in lastMessages:
|
for n in lastMessages:
|
||||||
ml.append(n)
|
ml.append(" - "+n)
|
||||||
self.sendMultiLineTextMessage(client, ml)
|
self.sendMultiLineTextMessage(client, ml)
|
||||||
|
|
||||||
def decodeTX(self, my_id):
|
def decodeTX(self, my_id):
|
||||||
|
|
Loading…
Reference in New Issue