mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
/v1/events: remove anti-deadlock hack
This commit is contained in:
parent
81713d0509
commit
94db282fd1
@ -110,7 +110,6 @@ bool EventsHandler::HandleRequest(
|
|||||||
}
|
}
|
||||||
|
|
||||||
asio::const_buffer newLine ("\n", 1);
|
asio::const_buffer newLine ("\n", 1);
|
||||||
AsioConditionVariable dontLockOwnStrand (stream.get_io_service(), true);
|
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
auto event (subscriber.GetInbox()->Shift(yc));
|
auto event (subscriber.GetInbox()->Shift(yc));
|
||||||
@ -129,8 +128,6 @@ bool EventsHandler::HandleRequest(
|
|||||||
stream.async_flush(yc);
|
stream.async_flush(yc);
|
||||||
} else if (server.Disconnected()) {
|
} else if (server.Disconnected()) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
|
||||||
dontLockOwnStrand.Wait(yc);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user