# HG changeset patch
# User john.levon(a)sun.com
# Date 1231958879 28800
# Node ID 672cdb87a32fb0b275bb7cdc9abb9c2d506ec1b0
# Parent 46dc909bda5b20d11f08d1516f21c05f27b6648f
Fix xs_unwatch() to correctly pass the token
Signed-off-by: John Levon <john.levon(a)sun.com>
diff --git a/src/xs_internal.c b/src/xs_internal.c
--- a/src/xs_internal.c
+++ b/src/xs_internal.c
@@ -1106,7 +1106,7 @@ int xenStoreRemoveWatch(virConnectPtr co
if (!xs_unwatch(priv->xshandle,
list->watches[i]->path,
- list->watches[i]->path))
+ list->watches[i]->token))
{
DEBUG0("WARNING: Could not remove watch");
/* Not fatal, continue */