[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Attempt fixing crash when trying to quit app

Kasper (Sep 28, 2025, 11:38 AM +0200) ce2b1132 0f1adeb2

+4
+4
src/electron/main.ts
··· 140 140 const track_path = decodeURIComponent(req_url.searchParams.get('path') ?? '') 141 141 const cache_db_path = decodeURIComponent(req_url.searchParams.get('cache_db_path') ?? '') 142 142 143 + if (quitting) { 144 + // If we're quitting, don't call async addon functions. It seems to cause panics. 145 + return new Response('Currently quitting', { status: 500 }) 146 + } 143 147 addon 144 148 .read_small_cover_async(track_path, 0, cache_db_path) 145 149 .then((buffer) => {