summaryrefslogtreecommitdiff
path: root/common/connectionbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/connectionbase.cpp')
-rw-r--r--common/connectionbase.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/connectionbase.cpp b/common/connectionbase.cpp
index 448e833..9a110f7 100644
--- a/common/connectionbase.cpp
+++ b/common/connectionbase.cpp
@@ -116,6 +116,12 @@ void ConnectionBase::got_data(uint8_t* data, std::size_t bytes) {
got_message(m);
} break;
+ case Message::Types::GameEnd: {
+ Message::GameEnd::p m = make_shared<Message::GameEnd>();
+ ia & m;
+ got_message(m);
+ } break;
+
default:
throw std::runtime_error("Deserialization attempted on unknown message type.");
}