Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
fix TrackerServer stop
Browse files Browse the repository at this point in the history
  • Loading branch information
camper42 authored and youngsofun committed Jul 23, 2018
1 parent 4e09628 commit 0401171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpark/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def stop(self):
confirm_msg = sock.recv_pyobj()
sock.close()
self.thread.join()
if self.ctx is None:
if self.ctx is not None:
self.ctx.destroy()
self.ctx = None
return confirm_msg
Expand Down

0 comments on commit 0401171

Please sign in to comment.