Fix tests

This commit is contained in:
kssenii 2021-09-12 16:55:37 +03:00
parent 4e5958d721
commit 0978c8baab

View File

@ -224,6 +224,8 @@ std::shared_ptr<Context> StorageRabbitMQ::addSettings(ContextPtr local_context)
void StorageRabbitMQ::loopingFunc() void StorageRabbitMQ::loopingFunc()
{ {
if (!rabbit_is_ready)
return;
if (connection->isConnected()) if (connection->isConnected())
connection->getHandler().startLoop(); connection->getHandler().startLoop();
} }