Index: net/curvecp/packetizer.h |
diff --git a/net/curvecp/packetizer.h b/net/curvecp/packetizer.h |
index bd4c27f58bf0d7554bb09e39130a5d3cf299b88a..c4b62edf910d87f2d190f1cfe9104dcd97248550 100644 |
--- a/net/curvecp/packetizer.h |
+++ b/net/curvecp/packetizer.h |
@@ -27,8 +27,6 @@ class Packetizer { |
size_t length) = 0; |
}; |
- virtual ~Packetizer() {} |
- |
// Send a message on a connection. |
virtual int SendMessage(ConnectionKey key, |
const char* data, |
@@ -43,6 +41,9 @@ class Packetizer { |
// Returns the current maximum message size which can be fit into the next |
// message payload to be sent on the packetizer. |
virtual int max_message_payload() const = 0; |
+ |
+ protected: |
+ virtual ~Packetizer() {} |
}; |
} // namespace net |