We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f82e3ee commit a2d90c0Copy full SHA for a2d90c0
lib/src/core/engine.dart
@@ -305,7 +305,11 @@ class Engine extends Disposable with EventsEmittable<EngineEvent> {
305
if (isBufferStatusLow(kind) == true) {
306
completer.complete();
307
} else {
308
- onClosing() => completer.completeError('Engine disconnected');
+ onClosing() {
309
+ if (!completer.isCompleted) {
310
+ completer.completeError('Engine disconnected');
311
+ }
312
313
events.once<EngineClosingEvent>((e) => onClosing());
314
315
while (!_dcBufferStatus[kind]!) {
0 commit comments