Skip to content

Commit 79db736

Browse files
alnitakfiliph
andauthoredMay 6, 2024
Update lib/src/soloud.dart
Co-authored-by: Filip Hracek <filiph@users.noreply.github.com>
1 parent 9723100 commit 79db736

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎lib/src/soloud.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ interface class SoLoud {
292292
// the release of the native player.
293293
// Just deinit the engine to be re-inited later.
294294
if (SoLoudController().soLoudFFI.isInited()) {
295+
_log.warning("init() called when the native player is already initialized. This is expected after a hot restart but not otherwise. If you see this in production logs, there's probably a bug in your code. You may have neglected to deinit() SoLoud during the current lifetime of the app.");
295296
deinit();
296297
}
297298

0 commit comments

Comments
 (0)