Skip to content

Commit

Permalink
fix(core): get_children with include_data=True uses GetChildren2 types (
Browse files Browse the repository at this point in the history
  • Loading branch information
saffroy authored and jeffwidman committed Oct 8, 2018
1 parent 3033091 commit 901cba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kazoo/protocol/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
Connect,
Exists,
GetChildren,
GetChildren2,
Ping,
PingInstance,
ReplyHeader,
Expand Down Expand Up @@ -398,7 +399,7 @@ def _read_response(self, header, buffer, offset):
# Determine if watchers should be registered
watcher = getattr(request, 'watcher', None)
if not client._stopped.is_set() and watcher:
if isinstance(request, GetChildren):
if isinstance(request, (GetChildren, GetChildren2)):
client._child_watchers[request.path].add(watcher)
else:
client._data_watchers[request.path].add(watcher)
Expand Down

0 comments on commit 901cba7

Please sign in to comment.