summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmServer.cxx')
-rw-r--r--Source/cmServer.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmServer.cxx b/Source/cmServer.cxx
index 7643b47..123b6a4 100644
--- a/Source/cmServer.cxx
+++ b/Source/cmServer.cxx
@@ -87,6 +87,8 @@ void read_stdin(uv_stream_t* stream, ssize_t nread, const uv_buf_t* buf)
cmServer::cmServer()
{
+ // Register supported protocols:
+ this->RegisterProtocol(new cmServerProtocol1_0);
}
cmServer::~cmServer()
@@ -245,6 +247,7 @@ cmServerResponse cmServer::SetProtocolVersion(const cmServerRequest& request)
void cmServer::Serve()
{
+ assert(!this->SupportedProtocols.empty());
assert(!this->Protocol);
this->Loop = uv_default_loop();