diff options
| author | Enrico Rossi <e.rossi@tecnobrain.com> | 2018-11-03 17:52:26 +0100 |
|---|---|---|
| committer | Enrico Rossi <e.rossi@tecnobrain.com> | 2018-11-03 17:52:26 +0100 |
| commit | b4aebf2d137b892f53503b13785ecae900062ff7 (patch) | |
| tree | 3ba99b2baec2292f2e13bfe90a5e401a5f4c47a5 /NetworkMessage.cpp | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
New upstream version 1.9.1+repackupstream/1.9.1+repack
* Drop local hamlib copy (commit d1b545be).
* Drop local boost copy (1.63.0).
Diffstat (limited to 'NetworkMessage.cpp')
| -rw-r--r-- | NetworkMessage.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/NetworkMessage.cpp b/NetworkMessage.cpp index b1ad0f11..5af133c7 100644 --- a/NetworkMessage.cpp +++ b/NetworkMessage.cpp @@ -4,6 +4,7 @@ #include <QString> #include <QByteArray> +#include <QDebug> #include "pimpl_impl.hpp" @@ -88,9 +89,13 @@ namespace NetworkMessage *parent >> type >> id_; if (type >= maximum_message_type_) { - throw std::runtime_error {"Unrecognized message type"}; + qDebug () << "Unrecognized message type:" << type << "from id:" << id_; + type_ = maximum_message_type_; + } + else + { + type_ = static_cast<Type> (type); } - type_ = static_cast<Type> (type); } quint32 schema_; |
