]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOPolledInterface.cpp
xnu-3248.50.21.tar.gz
[apple/xnu.git] / iokit / Kernel / IOPolledInterface.cpp
index 09a1dd2fb8cf26edc31492a023389e12e75ae3cc..f0bb31618a70a2df9dc1141df02ac788b894bc20 100644 (file)
@@ -263,6 +263,10 @@ IOPolledFilePollersClose(IOPolledFileIOVars * filevars, uint32_t state)
          idx++)
     {
         err = poller->close(state);
          idx++)
     {
         err = poller->close(state);
+        if ((kIOReturnSuccess != err) && (kIOPolledBeforeSleepStateAborted == state))
+        {
+            err = poller->close(kIOPolledBeforeSleepState);
+        }
         if (err) HIBLOG("IOPolledInterface::close[%d] 0x%x\n", idx, err);
     }
 
         if (err) HIBLOG("IOPolledInterface::close[%d] 0x%x\n", idx, err);
     }