Skip to content

Commit b71df91

Browse files
committed
Be specific about bDisconAfterRecv for TCP
1 parent 19a90e6 commit b71df91

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/tcpconnection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CTcpConnection : public QObject
4646
Q_OBJECT
4747

4848
public:
49-
CTcpConnection ( QTcpSocket* pTcpSocket, const CHostAddress& tcpAddress, CServer* pServer, CChannel* pChannel, bool bDisconAfterRecv = false );
49+
CTcpConnection ( QTcpSocket* pTcpSocket, const CHostAddress& tcpAddress, CServer* pServer, CChannel* pChannel, bool bDisconAfterRecv );
5050
~CTcpConnection() {}
5151

5252
void SetChannel ( CChannel* pChan ) { pChannel = pChan; }

src/tcpserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,5 @@ void CTcpServer::OnNewConnection()
9797

9898
qDebug() << "- Jamulus-TCP: received connection from:" << peerAddress.toString();
9999

100-
new CTcpConnection ( pSocket, peerAddress, pServer, nullptr ); // will auto-delete on disconnect
100+
new CTcpConnection ( pSocket, peerAddress, pServer, nullptr, false ); // will auto-delete on disconnect
101101
}

0 commit comments

Comments
 (0)