Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cassandra/io/libevreactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ def connection_created(self, conn):

def connection_destroyed(self, conn):
with self._conn_set_lock:
new_conns = self._new_conns.copy()
new_conns.discard(conn)
self._new_conns = new_conns

new_live_conns = self._live_conns.copy()
new_live_conns.discard(conn)
self._live_conns = new_live_conns
Expand Down Expand Up @@ -194,7 +198,8 @@ def _loop_will_run(self, prepare):
self._new_conns = set()

for conn in to_start:
conn._read_watcher.start()
if conn._read_watcher:
conn._read_watcher.start()

changed = True

Expand Down
Loading