Skip to content

Commit d97177b

Browse files
committed
fixed double reconnect
1 parent 6c31564 commit d97177b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scratchattach/cloud/_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,12 @@ def _send_packet(self, packet):
9090
time.sleep(0.2)
9191
self.connect()
9292
time.sleep(0.2)
93-
self.connect()
9493
try:
9594
self.websocket.send(json.dumps(packet) + "\n")
9695
except Exception:
9796
time.sleep(1.6)
9897
self.connect()
9998
time.sleep(1.4)
100-
self.connect()
10199
try:
102100
self.websocket.send(json.dumps(packet) + "\n")
103101
except Exception:

0 commit comments

Comments
 (0)