Skip to content

Commit

Permalink
なくなったときにクリアするように
Browse files Browse the repository at this point in the history
  • Loading branch information
shiosyakeyakini-info committed Oct 14, 2024
1 parent 83edd6d commit 258bd0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/services/streaming_service_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ class StreamingService implements StreamingController, WebSocketController {
_connections.removeWhere((e) => e.id == id);
_activeStreams--;
if (_activeStreams == 0) {
_subNotes.clear();
final lock = await _connectWebSocketMutex.acquire();
if (_connections.isEmpty) {
log("attempt $host streaming closed...");
Expand Down

0 comments on commit 258bd0c

Please sign in to comment.