Update socket.py

This commit is contained in:
zandercymatics 2023-11-15 17:09:23 -07:00
parent a8dcb52897
commit cc132cd17b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -85,7 +85,7 @@ class Socket:
should_retry = True
if isinstance(err, LoginError):
should_retry = err.should_retry()
if should_retry and counter < 10:
if should_retry and counter < 3:
counter += 1
sleep((counter * 50) / 1000) # sleep 50 ms to 150 ms
else: # don't try again