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