Return null in Future<WebSocketChannel>.catchError handler (flutter/engine#23101)

This commit is contained in:
Sam Rawlins 2021-01-14 14:29:58 -08:00 committed by GitHub
parent 9b8217feaa
commit b9b83f2112

View File

@ -559,7 +559,7 @@ class BrowserManager {
}).catchError((dynamic error, StackTrace stackTrace) {
browser.close();
if (completer.isCompleted) {
return;
return null;
}
completer.completeError(error, stackTrace);
});