diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp index 59c021e14..0b74d5dcd 100644 --- a/netcon/NetconEthernetTap.cpp +++ b/netcon/NetconEthernetTap.cpp @@ -547,6 +547,9 @@ void NetconEthernetTap::threadMain() if (read(_phy.getDescriptor(tcp_connections[i]->dataSock), &c, 1) < 0) { // Still in listening state } + else if (read(_phy.getDescriptor(tcp_connections[i]->rpcSock), &c, 1) < 0) { + // Still in listening state + } else { // Here we should handle the case there there is incoming data (?) dwr(MSG_DEBUG, " tap_thread(): Listening socketpair closed. Removing RPC connection (%d)\n",