wpiutil: Use scoped connections to ensure cleanup (#1474)

This commit is contained in:
Peter Johnson
2018-12-09 01:36:36 -08:00
committed by GitHub
parent e0e15eafeb
commit 608d82423d
4 changed files with 15 additions and 8 deletions

View File

@@ -139,7 +139,10 @@ class HttpServerConnection {
uv::Stream& m_stream;
/** The header reader connection. */
sig::Connection m_headerConn;
sig::ScopedConnection m_dataConn;
/** The end stream connection. */
sig::ScopedConnection m_endConn;
/** The message complete connection. */
sig::Connection m_messageCompleteConn;