Ignore:
Timestamp:
May 18, 2000, 11:09:04 AM (25 years ago)
Author:
sandervl
Message:

async select clear fix

File:
1 edited

Legend:

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

    r3378 r3548  
    1 /* $Id: asyncthread.cpp,v 1.4 2000-04-15 09:23:36 sandervl Exp $ */
     1/* $Id: asyncthread.cpp,v 1.5 2000-05-18 09:09:03 sandervl Exp $ */
    22
    33/*
     
    176176   pThreadInfo = threadList;
    177177   while(pThreadInfo) {
    178         if(pThreadInfo->u.asyncselect.s == s) {
     178        if(pThreadInfo->u.asyncselect.s == s && !pThreadInfo->fRemoved) {
    179179                return pThreadInfo;
    180180        }
     
    196196        pThreadInfo->hwnd                  = hwnd;
    197197        pThreadInfo->msg                   = msg;
     198        if(lEvent == 0) {
     199                //make sure this thread isn't used anymore
     200                pThreadInfo->fRemoved = TRUE;
     201        }
    198202        //cancel pending select in async select thread (if any)
    199203        so_cancel(s);
Note: See TracChangeset for help on using the changeset viewer.