Make receiver code more readable

This commit is contained in:
2020-04-08 10:39:20 +02:00
parent 5e5dab461e
commit 70f8218bcd
+5 -3
View File
@@ -124,9 +124,11 @@ void ZmqRecvModule::receive_thread(const string& connect_address)
auto frame = receiver.receive();
// .first and .second = nullptr when no message received
// If no message or currently not writing, idle.
if (frame.first == nullptr ||
!is_saving_.load(memory_order_relaxed)) {
if (frame.first == nullptr ) {
continue;
}
if (!is_saving_.load(memory_order_relaxed)) {
continue;
}