diff options
Diffstat (limited to 'Source/cmConnection.cxx')
-rw-r--r-- | Source/cmConnection.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmConnection.cxx b/Source/cmConnection.cxx index c0d1b82..f482412 100644 --- a/Source/cmConnection.cxx +++ b/Source/cmConnection.cxx @@ -69,6 +69,12 @@ bool cmEventBasedConnection::IsOpen() const void cmEventBasedConnection::WriteData(const std::string& _data) { +#ifndef NDEBUG + auto curr_thread_id = uv_thread_self(); + assert(this->Server); + assert(uv_thread_equal(&curr_thread_id, &this->Server->ServeThreadId)); +#endif + auto data = _data; assert(this->WriteStream); if (BufferStrategy) { |