Skip to content

Commit

Permalink
Merge pull request #65 from rotdrop/bugfix/reconnect-really
Browse files Browse the repository at this point in the history
IMHO, "reconnect" should catch __ALL__ sorts of connection errors.
  • Loading branch information
azlux authored May 10, 2020
2 parents bd31886 + 88aec39 commit 8f017f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pymumble_py3/mumble.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,12 @@ def run(self):

if self.connect() >= PYMUMBLE_CONN_STATE_FAILED: # some error occurred, exit here
self.ready_lock.release()
raise ConnectionRejectedError ("Connection error with the Mumble (murmur) Server")
break
if not self.reconnect or not self.parent_thread.is_alive():
raise ConnectionRejectedError ("Connection error with the Mumble (murmur) Server")
break
else:
time.sleep(PYMUMBLE_CONNECTION_RETRY_INTERVAL)
continue

try:
self.loop()
Expand Down

0 comments on commit 8f017f7

Please sign in to comment.