This commit is contained in:
Michael Kolupaev 2014-04-22 14:43:18 +04:00 committed by Sergey Magidovich
parent a7c8689a42
commit 112ca9720b

View File

@ -103,7 +103,7 @@ private:
}
WatchFuture future;
if (zookeeper.exists(*(it - 1), nullptr, &future))
if (zookeeper.exists(path + "/" + *(it - 1), nullptr, &future))
{
while (!shutdown)
if (future.wait_for(std::chrono::seconds(2)) != std::future_status::timeout)