fix: defer visualizer, remote control, and last.fm to post-login
Visualizer FFT thread, remote control API server, and Last.fm session
restore were all initializing before user session activation, causing
errors ("No active session") and wasting resources.
Move all three to run after activate_user_session:
- Visualizer: add started guard to prevent double-start
- Remote control: sync_server now has per-user settings available
- Last.fm: restoreLastfmSession moved from bootstrapApp to handleLoginSuccess
This commit is contained in:
1 parent
ff8c69f573
commit
aef4285fd9
5 files changed
+32
-17
No files matched your search
@@ -136,8 +136,8 @@ export function bootstrapApp(): BootstrapResult {
|
||||
const cleanupMouse = setupMouseNavigation();
|
||||
const cleanupZoom = setupZoomControls();
|
||||
|
||||
// Restore Last.fm session (async, fire-and-forget)
|
||||
restoreLastfmSession();
|
||||
// NOTE: restoreLastfmSession() is NOT called here.
|
||||
// It's called from handleLoginSuccess in +page.svelte after session activation.
|
||||
|
||||
// Initialize offline store (async, fire-and-forget)
|
||||
initOfflineStore();
|
||||
|
||||
Reference in new issue
Block a user