mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
impossible things happen sometimes?
This commit is contained in:
parent
6b1b945a77
commit
d0bd8dc046
@ -346,16 +346,18 @@ class ServerRepository:
|
||||
|
||||
client = self.clientsByConnection.get(datagram.getConnection())
|
||||
|
||||
if not client:
|
||||
# This shouldn't be possible, though it appears to happen
|
||||
# sometimes?
|
||||
self.notify.warning(
|
||||
"Ignoring datagram from unknown connection %s" % (datagram.getConnection()))
|
||||
return
|
||||
|
||||
if self.notify.getDebug():
|
||||
self.notify.debug(
|
||||
"ServerRepository received datagram from %s:" % (client.doIdBase))
|
||||
#datagram.dumpHex(ostream)
|
||||
|
||||
if not client:
|
||||
# This shouldn't be possible.
|
||||
self.notify.error(
|
||||
"Received datagram from unknown connection.")
|
||||
|
||||
dgi = DatagramIterator(datagram)
|
||||
|
||||
type = dgi.getUint16()
|
||||
|
Loading…
x
Reference in New Issue
Block a user