bug fix
This commit is contained in:
parent
bf678d5c2a
commit
30b6fcdf3d
3 changed files with 9 additions and 8 deletions
|
@ -338,15 +338,18 @@ for (int i = 0; i < BLOCK_SIZE_SAMPLES; i++)
|
|||
}
|
||||
Mutex.unlock (); /* put mutex unlock */
|
||||
|
||||
// if channel was not connected, emit signal to inform that new
|
||||
// connection was established
|
||||
if ( iConTimeOut == 0 )
|
||||
{
|
||||
emit NewConnection();
|
||||
}
|
||||
// check if channel was not connected
|
||||
const bool bChanWasNotConnected = !IsConnected();
|
||||
|
||||
// reset time-out counter
|
||||
iConTimeOut = CON_TIME_OUT_CNT_MAX;
|
||||
|
||||
// if channel was not connected, emit signal to inform that new
|
||||
// connection was established
|
||||
if ( bChanWasNotConnected )
|
||||
{
|
||||
emit NewConnection();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -51,8 +51,7 @@ for ( int i = 0; i < vecMessage.Size (); i++ ) {
|
|||
|
||||
// the protocol queries me to call the function to send the message
|
||||
// send it through the network
|
||||
Socket.SendPacket ( vecbyDataConv,
|
||||
Channel.GetAddress () );
|
||||
Socket.SendPacket ( vecbyDataConv, Channel.GetAddress () );
|
||||
}
|
||||
|
||||
bool CClient::SetServerAddr(QString strNAddr)
|
||||
|
|
|
@ -60,8 +60,7 @@ for ( int i = 0; i < vecMessage.Size (); i++ ) {
|
|||
|
||||
// the protocol queries me to call the function to send the message
|
||||
// send it through the network
|
||||
Socket.SendPacket ( vecbyDataConv,
|
||||
ChannelSet.GetAddress ( iChID ) );
|
||||
Socket.SendPacket ( vecbyDataConv, ChannelSet.GetAddress ( iChID ) );
|
||||
}
|
||||
|
||||
void CServer::Start ()
|
||||
|
|
Loading…
Reference in a new issue