mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
report server heartbeats
This commit is contained in:
parent
ee097fe7a8
commit
c43178944d
@ -539,9 +539,16 @@ class ClientRepository(DirectObject.DirectObject):
|
||||
"Server is booting us out with no explanation.")
|
||||
|
||||
|
||||
def handleServerHeartbeat(self, di):
|
||||
# Got a heartbeat message from the server.
|
||||
ClientRepository.notify.info("Server heartbeat.")
|
||||
|
||||
|
||||
def handleUnexpectedMsgType(self, msgType, di):
|
||||
if msgType == CLIENT_GO_GET_LOST:
|
||||
self.handleGoGetLost(di)
|
||||
elif msgType == CLIENT_HEARTBEAT:
|
||||
self.handleServerHeartbeat(di)
|
||||
else:
|
||||
currentLoginState = self.loginFSM.getCurrentState()
|
||||
if currentLoginState:
|
||||
|
@ -12,6 +12,8 @@ CLIENT_SET_SHARD = 31
|
||||
CLIENT_CREATE_OBJECT_REQUIRED = 34
|
||||
CLIENT_CREATE_OBJECT_REQUIRED_OTHER = 35
|
||||
|
||||
CLIENT_HEARTBEAT = 52
|
||||
|
||||
# These messages are ignored when the client is headed to the quiet zone
|
||||
QUIET_ZONE_IGNORED_LIST = [
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user