No need to null the loop reference during cleanup

This removes a small (but inconsequential) race on shutdown, where the
loop thread could access None when trying to start.

PYTHON-578
This commit is contained in:
Adam Holmberg
2016-07-20 13:03:52 -05:00
parent 3619462740
commit 9d36dd97f6

View File

@@ -135,7 +135,6 @@ class LibevLoop(object):
"Please call Cluster.shutdown() to avoid this.")
log.debug("Event loop thread was joined")
self._loop = None
def add_timer(self, timer):
self._timers.add_timer(timer)