feat: add exit game server message
This commit is contained in:
@@ -114,6 +114,9 @@ class _NetworkConnectionService():
|
||||
if data["type"] == "receive_piece":
|
||||
print("Receive a piece!")
|
||||
MultiplayerService._receive_piece_queue.put(PieceDto.create(data["piece"]))
|
||||
if data["type"] == "exit_game":
|
||||
print("Exit the game!")
|
||||
cls.close_connection()
|
||||
|
||||
cls._pending_receive_task = None
|
||||
elif len(pending):
|
||||
|
||||
Reference in New Issue
Block a user