Ignore:
Timestamp:
May 19, 2000, 12:54:21 AM (25 years ago)
Author:
sandervl
Message:

don't always call so_cancel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/asyncthread.cpp

    r3548 r3557  
    1 /* $Id: asyncthread.cpp,v 1.5 2000-05-18 09:09:03 sandervl Exp $ */
     1/* $Id: asyncthread.cpp,v 1.6 2000-05-18 22:54:21 sandervl Exp $ */
    22
    33/*
     
    200200                pThreadInfo->fRemoved = TRUE;
    201201        }
    202         //cancel pending select in async select thread (if any)
    203         so_cancel(s);
     202        if(pThreadInfo->fWaitSelect) {
     203                //cancel pending select in async select thread (if any)
     204                so_cancel(s);
     205        }
    204206
    205207        //unblock async thread if it was waiting
     
    223225
    224226        //cancel pending select in async select thread (if any)
    225         so_cancel(s);
     227        if(pThreadInfo->fWaitSelect) {
     228                so_cancel(s);
     229        }
    226230   }
    227231   asyncThreadMutex.leave();
Note: See TracChangeset for help on using the changeset viewer.