Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shiosyakeyakini-info committed Aug 15, 2024
1 parent f3706e4 commit 293569c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ analyzer:
exclude:
- "**/*.freezed.dart"
- "**/*.g.dart"
- "example/misskey_dart_flutter_app_example/**"
13 changes: 7 additions & 6 deletions lib/src/services/streaming_service_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,13 @@ class StreamingService implements StreamingController, WebSocketController {
_activeStreams--;
if (_activeStreams == 0) {
final lock = await _connectWebSocketMutex.acquire();
if (_connections.isNotEmpty) return;
log("attempt $host streaming closed...");
try {
await _close();
} finally {
lock.release();
if (_connections.isEmpty) {
log("attempt $host streaming closed...");
try {
await _close();
} finally {
lock.release();
}
}
}
}
Expand Down

0 comments on commit 293569c

Please sign in to comment.