Skip to content

Commit

Permalink
Refactor SpinifyCommandMixin error handling and connection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed May 14, 2024
1 parent 281f32d commit 5bebdfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/model/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ typedef SpinifyTokenCallback = FutureOr<SpinifyToken?> Function();
typedef SpinifyConnectionPayloadCallback = FutureOr<List<int>?> Function();

/// Log level for logger
extension type const SpinifyLogLevel._(int level) {
extension type const SpinifyLogLevel._(int level) implements int {
/// Log level: debug
@literal
const SpinifyLogLevel.debug() : level = 0;
Expand Down
1 change: 1 addition & 0 deletions lib/src/spinify_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ base mixin SpinifyConnectionMixin
Future<void> _onDisconnected() async {
_refreshTimer?.cancel();
_transport = null;
// TODO(plugfox): reconnect
await super._onDisconnected();
}

Expand Down

0 comments on commit 5bebdfe

Please sign in to comment.