kiwix / kiwix-js-pwa

Kiwix JS Offline Browser implemented as a Progressive Web App (PWA), and packaged as Electron, NWJS and UWP apps for Windows and Linux.
https://pwa.kiwix.org
GNU General Public License v3.0
168 stars 26 forks source link

[Electron app] If port is already in use, automatically scan for a new one on app startup #618

Closed Jaifroid closed 1 month ago

Jaifroid commented 1 month ago

As reported in #617, the app will crash if the default port (or a new one set by a user) is already in use. We need to catch the exception, increment the port by 10, store the new value, and retry.