diff --git a/cmd/reticulum-wasm/main.go b/cmd/reticulum-wasm/main.go index 5fcd22f..b672468 100644 --- a/cmd/reticulum-wasm/main.go +++ b/cmd/reticulum-wasm/main.go @@ -11,6 +11,12 @@ import ( ) func main() { + run() + // Keep the Go program running + select {} +} + +func run() { debug.Init() debug.SetDebugLevel(debug.DEBUG_INFO) @@ -18,8 +24,5 @@ func main() { // Notify JS that reticulum is ready js.Global().Call("reticulumReady") - - // Keep the Go program running - select {} }