face: Implementing forgotten isListening() feature in TcpChannel
Change-Id: Idfcd8337d16b414d2f739f936660dffdce413729
diff --git a/daemon/face/tcp-channel.cpp b/daemon/face/tcp-channel.cpp
index 28fdfa5..4c438be 100644
--- a/daemon/face/tcp-channel.cpp
+++ b/daemon/face/tcp-channel.cpp
@@ -16,6 +16,7 @@
TcpChannel::TcpChannel(const tcp::Endpoint& localEndpoint)
: m_localEndpoint(localEndpoint)
+ , m_isListening(false)
{
this->setUri(FaceUri(localEndpoint));
}
@@ -45,6 +46,8 @@
bind(&TcpChannel::handleSuccessfulAccept, this, _1,
clientSocket,
onFaceCreated, onAcceptFailed));
+
+ m_isListening = true;
}
void