Return null in Future<WebSocketChannel>.catchError handler (flutter/engine#23101)
This commit is contained in:
@@ -559,7 +559,7 @@ class BrowserManager {
|
||||
}).catchError((dynamic error, StackTrace stackTrace) {
|
||||
browser.close();
|
||||
if (completer.isCompleted) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
completer.completeError(error, stackTrace);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user