Ignore:
Timestamp:
Oct 15, 2010, 5:03:29 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

network: Fixed: QLocalServer could hang forever in the destructor trying to close the listen socket being watched by a socket notifier. This fixes the Assistant application hang at startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/network/socket/qlocalserver_os2.cpp

    r755 r795  
    134134void QLocalServerPrivate::closeServer()
    135135{
    136     if (-1 != listenSocket)
     136    if (-1 != listenSocket) {
     137        // stop select()ing on this socket, otherwise close() will hang
     138        socketNotifier->setEnabled(false);
    137139        QT_CLOSE(listenSocket);
    138     listenSocket = -1;
     140        listenSocket = -1;
     141    }
    139142
    140143    if (socketNotifier) {
Note: See TracChangeset for help on using the changeset viewer.