Bug 1119956 derive from DiscardableRunnable instead of CancelableRunnable when Cancel() is not supported r=asuth,sg
Differential Revision: https://phabricator.services.mozilla.com/D98118
This commit is contained in:
@@ -245,10 +245,10 @@ NS_IMPL_ISUPPORTS(WebSocketImpl, nsIInterfaceRequestor, nsIWebSocketListener,
|
||||
nsIObserver, nsISupportsWeakReference, nsIRequest,
|
||||
nsIEventTarget, nsIWebSocketImpl)
|
||||
|
||||
class CallDispatchConnectionCloseEvents final : public CancelableRunnable {
|
||||
class CallDispatchConnectionCloseEvents final : public DiscardableRunnable {
|
||||
public:
|
||||
explicit CallDispatchConnectionCloseEvents(WebSocketImpl* aWebSocketImpl)
|
||||
: CancelableRunnable("dom::CallDispatchConnectionCloseEvents"),
|
||||
: DiscardableRunnable("dom::CallDispatchConnectionCloseEvents"),
|
||||
mWebSocketImpl(aWebSocketImpl) {
|
||||
aWebSocketImpl->AssertIsOnTargetThread();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user