Skip to content

Commit

Permalink
stop long polling on failed authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
m0mchil committed Oct 30, 2012
1 parent c890423 commit 27123d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GetworkSource.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def send_internal(self, result, nonce):
def long_poll_thread(self): def long_poll_thread(self):
last_host = None last_host = None
while True: while True:
if self.should_stop: if self.should_stop or self.authorization_failed:
return return


url = self.long_poll_url url = self.long_poll_url
Expand Down

0 comments on commit 27123d4

Please sign in to comment.