Updated waitResponse

This commit is contained in:
arches 2016-07-26 10:06:33 -04:00
parent 60383a502c
commit 70bef36f64
1 changed files with 7 additions and 5 deletions

View File

@ -39,13 +39,15 @@ void etcdv3::AsyncWatchAction::waitForResponse()
while(cq_.Next(&got_tag, &ok))
{
if(ok == false || (got_tag == (void*)"writes done"))
{
break;
}
if(got_tag == (void*)this) // read tag
{
if(reply.events_size())
{
stream->WritesDone((void*)this);
cq_.Next(&got_tag, &ok);
break;
stream->WritesDone((void*)"writes done");
}
else
{