do not send empty lists
This commit is contained in:
1 parent
ce23f956ed
commit
b1b6b5c790
1 file changed
+5
-3
+5
-3
@@ -470,9 +470,11 @@ void PlugIn::OnTimer(int counter) {
|
||||
}
|
||||
|
||||
/* send the report */
|
||||
auto sequence = Backend::instance().update(update);
|
||||
if (true == inserted && nullptr != sequence)
|
||||
this->DisplayUserMessage(PLUGIN_NAME, "ERROR", "Unable to send a new aircraft report update", true, true, true, true, true);
|
||||
if (true == inserted) {
|
||||
auto sequence = Backend::instance().update(update);
|
||||
if (nullptr != sequence)
|
||||
this->DisplayUserMessage(PLUGIN_NAME, "ERROR", "Unable to send a new aircraft report update", true, true, true, true, true);
|
||||
}
|
||||
|
||||
airport.second.clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user