mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
disconnect during warning message
This commit is contained in:
parent
e5c2fc201e
commit
7420d4adbc
@ -145,6 +145,7 @@ class ClientRepository(DirectObject.DirectObject):
|
|||||||
# Unable to receive a datagram: did we lose the connection?
|
# Unable to receive a datagram: did we lose the connection?
|
||||||
if self.tcpConn.isClosed():
|
if self.tcpConn.isClosed():
|
||||||
self.tcpConn = None
|
self.tcpConn = None
|
||||||
|
self.stopReaderPollTask()
|
||||||
self.loginFSM.request("noConnection")
|
self.loginFSM.request("noConnection")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
@ -169,6 +170,7 @@ class ClientRepository(DirectObject.DirectObject):
|
|||||||
self.qcm.closeConnection(resetConn)
|
self.qcm.closeConnection(resetConn)
|
||||||
if self.tcpConn.this == resetConn.this:
|
if self.tcpConn.this == resetConn.this:
|
||||||
self.tcpConn = None
|
self.tcpConn = None
|
||||||
|
self.stopReaderPollTask()
|
||||||
self.loginFSM.request("noConnection")
|
self.loginFSM.request("noConnection")
|
||||||
else:
|
else:
|
||||||
self.notify.warning("Lost unknown connection.")
|
self.notify.warning("Lost unknown connection.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user