Migrate runZoned to runZonedGuarded (#22198)

This commit is contained in:
Zachary Anderson 2020-10-29 11:02:35 -07:00 committed by GitHub
parent 07c780bd95
commit b54bb88f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ abstract class Browser {
// Don't return a Future here because there's no need for the caller to wait
// for the process to actually start. They should just wait for the HTTP
// request instead.
runZoned(() async {
runZonedGuarded(() async {
var process = await startBrowser();
_processCompleter.complete(process);
@ -110,7 +110,7 @@ abstract class Browser {
}
_onExitCompleter.complete();
}, onError: (dynamic error, StackTrace stackTrace) {
}, (dynamic error, StackTrace stackTrace) {
// Ignore any errors after the browser has been closed.
if (_closed) {
return;