(ws cobra to sentry) handle null events for empty queues

This commit is contained in:
Benjamin Sergeant
2019-12-28 10:16:18 -08:00
parent 6522bc06ba
commit f4af84dc06
3 changed files with 10 additions and 1 deletions

View File

@ -146,6 +146,11 @@ namespace ix
{
Json::Value msg = queueManager.pop();
while (msg.isNull())
{
msg = queueManager.pop();
if (stop) return;
}
if (stop) return;
auto ret = sentryClient.send(msg, verbose);