Skip to content

Commit ca6bb73

Browse files
committed
sleep 1 when ack failed
1 parent 327a323 commit ca6bb73

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

python/bike.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ def ack(s):
4545

4646
if __name__ == '__main__':
4747
while True:
48-
time.sleep(1)
4948
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
5049
s.setblocking(1)
5150
s.settimeout(600000)
5251
s.connect((HOST, PORT))
5352

5453
connect(s)
5554
ack(s)
56-
55+
time.sleep(1)

0 commit comments

Comments
 (0)