diff --git a/src/channel.cpp b/src/channel.cpp index d5854889..389bb23b 100755 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -225,12 +225,22 @@ CChannel::CChannel () void CChannel::SetSockBufSize ( const int iNewBlockSize, const int iNumBlocks ) { - /* this opperation must be done with mutex */ + /* this opperation must be done with mutex */ + +qDebug ( "before lock" ); + Mutex.lock (); SockBuf.Init ( iNewBlockSize, iNumBlocks ); + +qDebug ( "in lock" ); + Mutex.unlock (); + + +qDebug ( "after lock" ); + } void CChannel::OnJittBufSizeChange ( int iNewJitBufSize )