getAlby / hub

Alby Hub - Your own lightning node connected to every app. Run anywhere. Become self-sovereign.
https://albyhub.com
Apache License 2.0
76 stars 13 forks source link

fix: prevent user starting wails app twice #709

Open rolznz opened 1 week ago

rolznz commented 1 week ago

Fixes https://github.com/getAlby/hub/issues/467

The simplest change to prevent Alby Hub running twice in Wails mode which could potentially cause corruption of the LDK directory. This is equivalent to how the http mode prevents it, but even better because the port is allocated even before the service starts.