diff options
Diffstat (limited to 'mojo/common/handle_watcher.cc')
-rw-r--r-- | mojo/common/handle_watcher.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mojo/common/handle_watcher.cc b/mojo/common/handle_watcher.cc index 7819779..79cdcdb 100644 --- a/mojo/common/handle_watcher.cc +++ b/mojo/common/handle_watcher.cc @@ -459,6 +459,8 @@ void HandleWatcher::Start(const Handle& handle, DCHECK(handle.is_valid()); DCHECK_NE(MOJO_HANDLE_SIGNAL_NONE, handle_signals); + // Need to clear the state before creating a new one. + state_.reset(); if (MessagePumpMojo::IsCurrent()) { state_.reset(new SameThreadWatchingState( this, handle, handle_signals, deadline, callback)); |