forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix MessagePumpFuchsia to cope with FDWatchers which outlive it.
The Fuchsia FileDescriptorWatcher attempted to cancel the wait operation on deletion, failing if the pump was already deleted because the underlying wait port was no longer valid. FileDescriptorWatcher now access the wait port handle via a WeakPtr to the associated MessagePumpFuchsia, allowing it to skip cancelling the operation in this case. Bug: 738275 Change-Id: Icd2a8811219de182c9c9a3208224e46a9ce1d186 Reviewed-on: https://chromium-review.googlesource.com/575291 Commit-Queue: Wez <wez@chromium.org> Reviewed-by: Kevin Marshall <kmarshall@chromium.org> Cr-Commit-Position: refs/heads/master@{#487314}
- Loading branch information
Wez
authored and
Commit Bot
committed
Jul 18, 2017
1 parent
81feb91
commit 5289ff3
Showing
2 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters