diff options
author | Justin Berger <j.david.berger@gmail.com> | 2017-07-21 15:35:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-08-31 19:35:04 (GMT) |
commit | f8fd5a979cb4acd8a37632c29b453a426e798178 (patch) | |
tree | aa63166aeb23b792cbe1dac1581a40ac04bdcf88 /Source/cmConnection.cxx | |
parent | 6afc7f8828e5199395edfb10ac1a55891596907d (diff) | |
download | CMake-f8fd5a979cb4acd8a37632c29b453a426e798178.zip CMake-f8fd5a979cb4acd8a37632c29b453a426e798178.tar.gz CMake-f8fd5a979cb4acd8a37632c29b453a426e798178.tar.bz2 |
server: Made stdio connection accept different types of streams
Diffstat (limited to 'Source/cmConnection.cxx')
-rw-r--r-- | Source/cmConnection.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmConnection.cxx b/Source/cmConnection.cxx index bc29e41..6cf8e5b 100644 --- a/Source/cmConnection.cxx +++ b/Source/cmConnection.cxx @@ -144,9 +144,12 @@ bool cmConnection::OnServeStart(std::string* errString) bool cmEventBasedConnection::OnConnectionShuttingDown() { - this->WriteStream->data = nullptr; - this->ReadStream->data = nullptr; - + if (this->WriteStream) { + this->WriteStream->data = nullptr; + } + if (this->ReadStream) { + this->ReadStream->data = nullptr; + } this->ReadStream = nullptr; this->WriteStream = nullptr; return true; |