Skip to content

Commit

Permalink
Resolve the status not update properly issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Feb 7, 2024
1 parent af44ef2 commit d90fd51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions discordgsm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,10 @@ async def query_distinct_server(servers: list[Server]):
Logger.debug(f'Query servers: ({server.game_id})[{server.address}:{server.query_port}] {type(e).__name__}: {e}')

for server in servers:
# Update the status
server.status = status

# Update the result
if status:
sent_offline_alert = bool(server.result['raw'].get('__sent_offline_alert', False))
server.result = result
Expand Down
2 changes: 1 addition & 1 deletion discordgsm/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.16.0'
__version__ = '2.16.1'

0 comments on commit d90fd51

Please sign in to comment.