Comment 0 for bug 1038050

Revision history for this message
Alex Brasetvik (alex-brasetvik) wrote :

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.