summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.h')
-rw-r--r--src/Protocol/ProtocolRecognizer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Protocol/ProtocolRecognizer.h b/src/Protocol/ProtocolRecognizer.h
index 7f1758463..744a691ed 100644
--- a/src/Protocol/ProtocolRecognizer.h
+++ b/src/Protocol/ProtocolRecognizer.h
@@ -132,8 +132,11 @@ public:
//virtual void SendData(const char * a_Data, size_t a_Size) override;
- cProtocolError HandleHandshake(cByteBuffer & a_ByteBuffer, std::vector<std::unique_ptr<cClientAction>> & a_Actions) override WARN_UNUSED;
-
+ cProtocolError HandleHandshake(cByteBuffer & a_ByteBuffer, std::vector<std::unique_ptr<cClientAction>> & a_Actions) override WARN_UNUSED
+ {
+ ASSERT(!"cProtocolRecognizer should be decoding the handshake packet");
+ return cProtocolError::PacketError;
+ }
protected:
/** The recognized protocol */
std::unique_ptr<cProtocol> m_Protocol;