From dd973984d8c7e04e6c90e4ca8730de0cb0bb1b36 Mon Sep 17 00:00:00 2001 From: Syrone Wong Date: Mon, 23 Mar 2020 14:22:40 +0800 Subject: [PATCH] fix interface{} to bool type conversion panic Signed-off-by: Syrone Wong --- clash/clash.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clash/clash.go b/clash/clash.go index e6b44a1..e288d2b 100755 --- a/clash/clash.go +++ b/clash/clash.go @@ -70,3 +70,8 @@ func Stop() { runningFlag.Store(false) } + +func init() { + // default value + runningFlag.Store(false) +}