fix checks

This commit is contained in:
Hiroshi Horie
2022-05-15 23:58:35 +09:00
parent 566937f630
commit 740efea006
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ mixin _Disposer {
logger.finer(
'[$objectId] running ${_disposeFuncs.length} dispose funcs...');
// call dispose funcs in reverse order
for (final _func in _disposeFuncs.reversed) {
await _func();
for (final disposeFunc in _disposeFuncs.reversed) {
await disposeFunc();
}
_disposeFuncs.clear();
logger.finer('[$objectId] dispose complete.');
+2 -2
View File
@@ -30,8 +30,8 @@ class LiveKitWebSocketWeb extends LiveKitWebSocket {
logger.warning('$objectId already disposed, ignoring received data.');
return;
}
dynamic _data = _.data is ByteBuffer ? _.data.asUint8List() : _.data;
options?.onData?.call(_data);
dynamic data = _.data is ByteBuffer ? _.data.asUint8List() : _.data;
options?.onData?.call(data);
});
_closeSubscription = _ws.onClose.listen((_) async {
await _messageSubscription.cancel();