]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOPMrootDomain.cpp
xnu-6153.61.1.tar.gz
[apple/xnu.git] / iokit / Kernel / IOPMrootDomain.cpp
index 624d7a812a1934be0739f8b40f7bccc9200c55f0..c1114f9ec1e7d94738614c86d34ed44f1fe44a8c 100644 (file)
@@ -9883,7 +9883,7 @@ IOPMrootDomain::acceptSystemWakeEvents( bool accept )
                }
                _acceptSystemWakeEvents = (_systemWakeEventsArray != NULL);
 #if !(defined(RC_HIDE_N144) || defined(RC_HIDE_N146))
-               if (!(kIOPMWakeEventAOTExitFlags & _aotPendingFlags))
+               if (!(_aotNow && (kIOPMWakeEventAOTExitFlags & _aotPendingFlags)))
 #endif /* !(defined(RC_HIDE_N144) || defined(RC_HIDE_N146)) */
                {
                        gWakeReasonString[0] = '\0';