修复开放平台项目可能在close之前停止项目心跳的问题

This commit is contained in:
John Smith 2023-09-05 22:08:22 +08:00
parent b6e9578cb2
commit 356837c136

View File

@ -218,10 +218,6 @@ class OpenLiveClient(ws_base.WebSocketClientBase):
"""
定时发送项目心跳包的回调
"""
if not self.is_running:
self._game_heartbeat_timer_handle = None
return
self._game_heartbeat_timer_handle = asyncio.get_running_loop().call_later(
self._game_heartbeat_interval, self._on_send_game_heartbeat
)