Updated waitResponse
This commit is contained in:
parent
60383a502c
commit
70bef36f64
|
|
@ -39,13 +39,15 @@ void etcdv3::AsyncWatchAction::waitForResponse()
|
||||||
|
|
||||||
while(cq_.Next(&got_tag, &ok))
|
while(cq_.Next(&got_tag, &ok))
|
||||||
{
|
{
|
||||||
|
if(ok == false || (got_tag == (void*)"writes done"))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
if(got_tag == (void*)this) // read tag
|
if(got_tag == (void*)this) // read tag
|
||||||
{
|
{
|
||||||
if(reply.events_size())
|
if(reply.events_size())
|
||||||
{
|
{
|
||||||
stream->WritesDone((void*)this);
|
stream->WritesDone((void*)"writes done");
|
||||||
cq_.Next(&got_tag, &ok);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue