mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1184807 - better management of the dispatching of events when shutting down, r=rjesup
This commit is contained in:
parent
9de100cf73
commit
254bfbb384
@ -194,8 +194,11 @@ TextTrackList::CreateAndDispatchTrackEventRunner(TextTrack* aTrack,
|
||||
TrackEvent::Constructor(this, aEventName, eventInit);
|
||||
|
||||
// Dispatch the TrackEvent asynchronously.
|
||||
nsCOMPtr<nsIRunnable> eventRunner = new TrackEventRunner(this, event);
|
||||
NS_DispatchToMainThread(eventRunner);
|
||||
rv = thread->Dispatch(do_AddRef(new TrackEventRunner(this, event)),
|
||||
NS_DISPATCH_NORMAL);
|
||||
|
||||
// If we are shutting down this can file but it's still ok.
|
||||
NS_WARN_IF(NS_FAILED(rv));
|
||||
}
|
||||
|
||||
HTMLMediaElement*
|
||||
|
Loading…
Reference in New Issue
Block a user