mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 06:15:31 +00:00
rework server class (added python queue support)
This commit is contained in:
parent
24eeef6ebb
commit
5c6039ef71
6 changed files with 69 additions and 76 deletions
|
|
@ -96,7 +96,7 @@ try:
|
|||
failedTransmits = 0
|
||||
while not bwClient.receive() == "[ack]": # wait for ack or timeout
|
||||
if failedTransmits >= 3:
|
||||
logging.error("cannot transmit after 5 retires")
|
||||
logging.error("cannot transmit after 3 retires")
|
||||
break
|
||||
failedTransmits += 1
|
||||
logging.warning("attempt %d to resend packet", failedTransmits)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue