diff --git a/src/Watcher.cpp b/src/Watcher.cpp index e02c873..89b979c 100644 --- a/src/Watcher.cpp +++ b/src/Watcher.cpp @@ -107,7 +107,7 @@ void etcd::Watcher::Wait(std::function callback) currentTask.then([this, callback](pplx::task const & resp_task) { resp_task.wait(); callback(this->stubs->call->Cancelled()); - }).wait(); + }); } void etcd::Watcher::Cancel()