[wpdev-commits] wolfpack/network asyncnetio.cpp,1.53,1.54
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-19 22:13:48
|
Update of /cvsroot/wpdev/wolfpack/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19784/network Modified Files: asyncnetio.cpp Log Message: Fixes Index: asyncnetio.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/network/asyncnetio.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** asyncnetio.cpp 19 Sep 2004 15:37:13 -0000 1.53 --- asyncnetio.cpp 19 Sep 2004 22:13:35 -0000 1.54 *************** *** 679,682 **** --- 679,685 ---- return; + // Before we continue, we should guarantee no one writes packets to the buffer. + QMutexLocker lock( &d->wmutex ); + // Encrypt new packets QByteArray *p = d->wba.first(); *************** *** 692,697 **** d->wba.setAutoDelete(TRUE); - // Before we continue, we should guarantee no one writes packets to the buffer. - QMutexLocker lock( &d->wmutex ); while ( !osBufferFull && d->wsize > 0 ) { --- 695,698 ---- |