bug fix for the shutdown of the server
This commit is contained in:
parent
b8930b5232
commit
d214f9976d
1 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ public:
|
|||
|
||||
virtual ~CHighPrioSocket()
|
||||
{
|
||||
NetworkWorkerThread.exit();
|
||||
NetworkWorkerThread.Stop();
|
||||
}
|
||||
|
||||
void Start()
|
||||
|
@ -173,7 +173,7 @@ protected:
|
|||
CSocketThread ( CSocket* pNewSocket = NULL, QObject* parent = 0 ) :
|
||||
QThread ( parent ), pSocket ( pNewSocket ), bRun ( true ) {}
|
||||
|
||||
virtual ~CSocketThread()
|
||||
void Stop()
|
||||
{
|
||||
// disable run flag so that the thread loop can be exit
|
||||
bRun = false;
|
||||
|
|
Loading…
Reference in a new issue