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` (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.