mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
fix player listener
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1132,8 +1132,6 @@ class PlPlayerController {
|
|||||||
|
|
||||||
/// 移除事件监听
|
/// 移除事件监听
|
||||||
Future<void> removeListeners() async {
|
Future<void> removeListeners() async {
|
||||||
_statusListeners.clear();
|
|
||||||
_positionListeners.clear();
|
|
||||||
await Future.wait(subscriptions.map((e) => e.cancel()));
|
await Future.wait(subscriptions.map((e) => e.cancel()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user