Commit abfa99d2 authored by Alexander Korolkov's avatar Alexander Korolkov

Fix race condition in client's KeepAlive thread

Stopping KeepAlive thread could trigger renewing secure channel.
In disconnect() Client sent CloseSessionRequest and
OpenSecureChannel(Renew) almost simultaneously.
parent 286a4229
......@@ -53,9 +53,9 @@ class KeepAlive(Thread):
def stop(self):
self.logger.debug("stoping keepalive thread")
self._dostop = True
with self._cond:
self._cond.notify_all()
self._dostop = True
class Client(object):
......
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