2012-08-17 12:21:16 |
Alex Brasetvik |
description |
zookeeper.init returns 0 as the handle for the first connection initialized.
The check for a handle in ZookeeperClient.close erroneously checks `if not self.handle` (which is False when the handle is 0) instead of `if self.handle is None` like the other checks. Consequently, the underlying connection is not closed. |
zookeeper.init returns 0 as the handle for the first connection initialized.
The check for a handle in ZookeeperClient.close erroneously checks `if not self.handle` (and self.handle is falsy when 0) instead of `if self.handle is None` like the other checks. Consequently, the underlying connection is not closed. |
|