mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:41:24 +00:00
[ package:vm_service ] Swallow exceptions from streamCancel in service_test_common
Change-Id: Idcc1368dc53e7356ea40c890b5c9c76c03b4f563 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114444 Reviewed-by: Régis Crelier <regis@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
parent
75b4090c35
commit
3f8c533fcb
|
@ -65,7 +65,7 @@ Future<void> hasPausedFor(
|
|||
if (completer != null) {
|
||||
try {
|
||||
await service.streamCancel(EventStreams.kDebug);
|
||||
} finally {
|
||||
} catch (_) {/* swallow exception */} finally {
|
||||
subscription.cancel();
|
||||
completer?.complete();
|
||||
completer = null;
|
||||
|
@ -81,7 +81,7 @@ Future<void> hasPausedFor(
|
|||
if (completer != null) {
|
||||
try {
|
||||
await service.streamCancel(EventStreams.kDebug);
|
||||
} finally {
|
||||
} catch (_) {/* swallow exception */} finally {
|
||||
subscription.cancel();
|
||||
completer?.complete();
|
||||
}
|
||||
|
@ -178,7 +178,7 @@ Future<void> resumeIsolate(VmService service, IsolateRef isolate) async {
|
|||
if (event.kind == EventKind.kResume) {
|
||||
try {
|
||||
await service.streamCancel(EventStreams.kDebug);
|
||||
} finally {
|
||||
} catch (_) {/* swallow exception */} finally {
|
||||
subscription.cancel();
|
||||
completer.complete();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue