mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
636f3abc61
commit
3dbb4bd24a
@ -70,6 +70,7 @@ class ClientRepository(DirectObject.DirectObject):
|
|||||||
return Task.cont
|
return Task.cont
|
||||||
|
|
||||||
def readerPollOnce(self):
|
def readerPollOnce(self):
|
||||||
|
self.ensureValidConnection()
|
||||||
availGetVal = self.qcr.dataAvailable()
|
availGetVal = self.qcr.dataAvailable()
|
||||||
if availGetVal:
|
if availGetVal:
|
||||||
#print "Client: Incoming message!"
|
#print "Client: Incoming message!"
|
||||||
@ -81,6 +82,14 @@ class ClientRepository(DirectObject.DirectObject):
|
|||||||
ClientRepository.notify.warning("getData returned false")
|
ClientRepository.notify.warning("getData returned false")
|
||||||
return availGetVal
|
return availGetVal
|
||||||
|
|
||||||
|
def ensureValidConnection(self):
|
||||||
|
# Was the connection reset?
|
||||||
|
if self.qcm.resetConnectionAvailable():
|
||||||
|
resetConnectionPointer = PointerToConnection()
|
||||||
|
if self.qcm.getResetConnection(resetConnectionPointer):
|
||||||
|
self.fsm.request("noConnection")
|
||||||
|
return None
|
||||||
|
|
||||||
def handleDatagram(self, datagram):
|
def handleDatagram(self, datagram):
|
||||||
# This class is meant to be pure virtual, and any classes that
|
# This class is meant to be pure virtual, and any classes that
|
||||||
# inherit from it need to make their own handleDatagram method
|
# inherit from it need to make their own handleDatagram method
|
||||||
|
Loading…
x
Reference in New Issue
Block a user