From 9d36dd97f68a02aec13b3345b09e8dff1c880515 Mon Sep 17 00:00:00 2001 From: Adam Holmberg Date: Wed, 20 Jul 2016 13:03:52 -0500 Subject: [PATCH] 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 --- cassandra/io/libevreactor.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cassandra/io/libevreactor.py b/cassandra/io/libevreactor.py index 89e08cb1..9b19d1f3 100644 --- a/cassandra/io/libevreactor.py +++ b/cassandra/io/libevreactor.py @@ -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)