From 6e19d175ebd392fb36cba80dbb2c63a79bb19784 Mon Sep 17 00:00:00 2001 From: Marco Bavagnoli Date: Sat, 27 Jul 2024 08:56:43 +0200 Subject: [PATCH] fix: Init error on hot restart #81 --- lib/src/soloud.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/soloud.dart b/lib/src/soloud.dart index 0ee95cb..b748c34 100644 --- a/lib/src/soloud.dart +++ b/lib/src/soloud.dart @@ -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. ///