From d6eebe82bd326ab75b4c22b6d1826ddde754e550 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 6 Nov 2019 12:32:16 -0800 Subject: [PATCH] fix race condition in ui/gcd vs cwtch app start --- go/gothings/gcd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/gothings/gcd.go b/go/gothings/gcd.go index 115abc64..85085a74 100644 --- a/go/gothings/gcd.go +++ b/go/gothings/gcd.go @@ -506,7 +506,9 @@ func (this *GrandCentralDispatcher) setLocale(locale string) { func (this *GrandCentralDispatcher) onActivate() { log.Debugln("onActivate") - the.CwtchApp.QueryACNStatus() + if the.CwtchApp != nil { + the.CwtchApp.QueryACNStatus() + } } func (this *GrandCentralDispatcher) SetLocale_helper(locale string) { -- 2.25.1