提交 3ee89f5e 编写于 作者: J Johannes Rieken

double cancel dummy cancellation token

上级 10e17cef
......@@ -84,8 +84,10 @@ export class CancellationTokenSource {
// cancelled token when cancellation happens
// before someone asks for the token
this._token = CancellationToken.Cancelled;
} else {
(<MutableToken>this._token).cancel();
} else if (this._token instanceof MutableToken) {
// actually cancel
this._token.cancel();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册