Skip to content

Commit

Permalink
Fix duplicate REQUESTBATTLESTATUS sent to host
Browse files Browse the repository at this point in the history
Call to `battle.joinBattle()` results in `client.Send('REQUESTBATTLESTATUS')` and has no exit-paths before that call, making the call on the line directly after `battle.joinBattle()` entirely redundant.
  • Loading branch information
MasterBel2 authored Jul 19, 2020
1 parent 6237dd5 commit a4a1f23
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion protocol/Protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,6 @@ def in_OPENBATTLE(self, client, type, natType, key, port, maxplayers, hashcode,

client.Send('OPENBATTLE %s' % battle.battle_id)
battle.joinBattle(client)
client.Send('REQUESTBATTLESTATUS')

def in_JOINBATTLE(self, client, battle_id, key=None, scriptPassword=None):
'''
Expand Down

0 comments on commit a4a1f23

Please sign in to comment.