Skip to content

Commit

Permalink
fix: Init error on hot restart #81
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Jul 27, 2024
1 parent 4cd6e0b commit 6e19d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/soloud.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ interface class SoLoud {
/// Use [isInitialized] only if you want to check the current status of
/// the engine synchronously and you don't care that it might be ready soon.
// TODO(filip): related to `get initialized`. This line below is the old one.
bool get isInitialized => _isInitialized;
// bool get isInitialized => _isInitialized;
// TODO(filip): this line below is the new one I leaved to let the
/// plugin to work.
// bool get isInitialized => _controller.soLoudFFI.isInited();
bool get isInitialized => _controller.soLoudFFI.isInited();

/// The completer for an initialization in progress.
///
Expand Down

0 comments on commit 6e19d17

Please sign in to comment.