Skip to content

Commit

Permalink
Missing timeout - that will fix reconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Apr 15, 2021
1 parent 5eb2437 commit 570465a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PC_Miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ def Thread(
# Establish socket connection to the server
soc.connect((str(masterServer_address),
int(masterServer_port)))
soc.settimeout(timeout)
serverVersion = soc.recv(3).decode().rstrip(
"\n") # Get server version
debugOutput("Server version: " + serverVersion)
Expand Down Expand Up @@ -1271,7 +1272,7 @@ def updateRichPresence():
hashrates_list,
totalhashrate_mean))
thread[x].start()
sleep(0.05)
sleep(0.1)
except Exception as e:
prettyPrint(
"sys0",
Expand Down

0 comments on commit 570465a

Please sign in to comment.