File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/hd-transport-electron/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,9 @@ async function initializeNoble(): Promise<void> {
251
251
return ;
252
252
}
253
253
254
+ // Setup persistent state listener before initialization
255
+ setupPersistentStateListener ( ) ;
256
+
254
257
const timeout = setTimeout ( ( ) => {
255
258
reject (
256
259
ERRORS . TypedError ( HardwareErrorCode . RuntimeError , 'Bluetooth initialization timeout' )
@@ -290,9 +293,6 @@ async function initializeNoble(): Promise<void> {
290
293
handleDeviceDiscovered ( peripheral ) ;
291
294
} ) ;
292
295
293
- // Setup persistent state listener after initialization
294
- setupPersistentStateListener ( ) ;
295
-
296
296
logger ?. info ( '[NobleBLE] Noble initialized successfully' ) ;
297
297
} catch ( error ) {
298
298
logger ?. error ( '[NobleBLE] Failed to initialize Noble:' , error ) ;
You can’t perform that action at this time.
0 commit comments