Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: runtime/bin/eventhandler_win.cc

Issue 143473006: Send error-event if socket is marked for error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Really fix the issue :) Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_win.cc
diff --git a/runtime/bin/eventhandler_win.cc b/runtime/bin/eventhandler_win.cc
index b6ac1ce2c75de5405b2b3602998bf45a5a09d95e..993670cc53e9ae9a705e5f818e7f3bfd4e156368 100644
--- a/runtime/bin/eventhandler_win.cc
+++ b/runtime/bin/eventhandler_win.cc
@@ -988,7 +988,9 @@ void EventHandlerImplementation::HandleInterrupt(InterruptMessage* msg) {
Handle::ScopedLock lock(handle);
- if (!handle->IsError()) {
+ if (handle->IsError()) {
+ DartUtils::PostInt32(msg->dart_port, 1 << kErrorEvent);
+ } else {
if ((msg->data & ((1 << kInEvent) | (1 << kOutEvent))) != 0) {
// Only set mask if we turned on kInEvent or kOutEvent.
handle->SetPortAndMask(msg->dart_port, msg->data);
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698