Commit 5d56a255 authored by Jeremy Hylton's avatar Jeremy Hylton

Don't continue with notifyConnected() if the storage is closed.

There's a race between closing the storage and shutting down the
ConnectThread.  If we return here, the ConnectThread does no harm.
parent b7325a8d
......@@ -387,6 +387,11 @@ class ClientStorage:
This is called by ConnectionManager after it has decided which
connection should be used.
"""
if self._cache is None:
# the storage was closed, but the connect thread called
# this method before it was stopped.
return
# XXX would like to report whether we get a read-only connection
if self._connection is not None:
reconnect = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment