src/corelib/kernel/qeventdispatcher_symbian.cpp
branchRCL_3
changeset 9 740e5562c97f
parent 8 3f74d0d4af4c
child 16 b25b6dc3ff8b
equal deleted inserted replaced
8:3f74d0d4af4c 9:740e5562c97f
   568         } else if(type == QSocketNotifier::Exception && FD_ISSET(i.key()->socket(), fds)) {
   568         } else if(type == QSocketNotifier::Exception && FD_ISSET(i.key()->socket(), fds)) {
   569             /*
   569             /*
   570              * check if socket is in exception set
   570              * check if socket is in exception set
   571              * then signal RequestComplete for it
   571              * then signal RequestComplete for it
   572              */
   572              */
   573             qWarning("exception on %d", i.key()->socket());
   573             qWarning("exception on %d [will close the socket handle - hack]", i.key()->socket());
       
   574             // quick fix; there is a bug
       
   575             // when doing read on socket
       
   576             // errors not preoperly mapped
       
   577             // after offline-ing the device
       
   578             // on some devices we do get exception
       
   579             ::close(i.key()->socket());
   574             toRemove.append(i.key());
   580             toRemove.append(i.key());
   575             TRequestStatus *status = i.value();
   581             TRequestStatus *status = i.value();
   576             QEventDispatcherSymbian::RequestComplete(d->threadData->symbian_thread_handle, status, KErrNone);
   582             QEventDispatcherSymbian::RequestComplete(d->threadData->symbian_thread_handle, status, KErrNone);
   577         }
   583         }
   578     }
   584     }