diff --git a/lib.go b/lib.go index 6cfc981..3110f27 100644 --- a/lib.go +++ b/lib.go @@ -86,6 +86,12 @@ func StartCwtch(appDir string, torPath string) int { } func _startCwtch(appDir string, torPath string) { + if application != nil { + log.Infof("_startCwtch detected existing application; resuming instead of relaunching") + ReconnectCwtchForeground() + return + } + // Exclude Tapir wire Messages (We need a TRACE level) log.ExcludeFromPattern("service.go")