Index: runtime/bin/eventhandler_win.cc |
diff --git a/runtime/bin/eventhandler_win.cc b/runtime/bin/eventhandler_win.cc |
index 2cecd77f1c56280d3f9d3bd4a65f0cef1b3f0d93..f9887128c49ef4dae66c19b26a38a1b51555da7b 100644 |
--- a/runtime/bin/eventhandler_win.cc |
+++ b/runtime/bin/eventhandler_win.cc |
@@ -149,7 +149,7 @@ void Handle::Close() { |
// If the handle uses synchronous I/O (e.g. stdin), cancel any pending |
// operation before closing the handle, so the read thread is not blocked. |
BOOL result = CancelIoEx(handle_, NULL); |
- ASSERT(result); |
+ ASSERT(result || (GetLastError() == ERROR_NOT_FOUND)); |
} |
MonitorLocker ml(monitor_); |
if (!IsClosing()) { |