Clear baseband message for non-shutdown messages.

This commit is contained in:
Jared Boone 2016-07-02 16:02:03 -07:00
parent eac4cf678a
commit dbd0c17c2f

View File

@ -92,7 +92,6 @@ void EventDispatcher::handle_baseband_queue() {
const auto message = shared_memory.baseband_message; const auto message = shared_memory.baseband_message;
if( message ) { if( message ) {
on_message(message); on_message(message);
shared_memory.baseband_message = nullptr;
} }
} }
@ -104,6 +103,7 @@ void EventDispatcher::on_message(const Message* const message) {
default: default:
on_message_default(message); on_message_default(message);
shared_memory.baseband_message = nullptr;
break; break;
} }
} }