[ 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:
Ben Konyi 2019-08-23 22:06:58 +00:00 committed by commit-bot@chromium.org
parent 75b4090c35
commit 3f8c533fcb

View file

@ -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();
}