aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manager/updatestate.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-19 12:19:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-19 12:19:11 +0200
commitd4b719a5c5cff829b9b92ef78e0a896a4cf0b964 (patch)
treedd7faf73e1fd6540a873667860b0cbf54763aa6a /manager/updatestate.go
parentmanager: wait for UIs to quit before quitting (diff)
downloadwireguard-windows-d4b719a5c5cff829b9b92ef78e0a896a4cf0b964.tar.xz
wireguard-windows-d4b719a5c5cff829b9b92ef78e0a896a4cf0b964.zip
manager: print panics on all go routines not just main one
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--manager/updatestate.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/manager/updatestate.go b/manager/updatestate.go
index 4b2cf1c1..b54cc367 100644
--- a/manager/updatestate.go
+++ b/manager/updatestate.go
@@ -24,6 +24,8 @@ const (
var updateState = UpdateStateUnknown
func checkForUpdates() {
+ defer printPanic()
+
if !version.IsRunningOfficialVersion() {
log.Println("Build is not official, so updates are disabled")
updateState = UpdateStateUpdatesDisabledUnofficialBuild