aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manager/updatestate.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-12-03 13:40:02 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-12-09 16:01:47 +0100
commit450189162e15c813713b5c3a5208bdb6380c17f8 (patch)
tree40c4d93b70a705f50559a72aac135b6a6129336e /manager/updatestate.go
parentmanager: use service subscriptions on win 8+ (diff)
downloadwireguard-windows-450189162e15c813713b5c3a5208bdb6380c17f8.tar.xz
wireguard-windows-450189162e15c813713b5c3a5208bdb6380c17f8.zip
ringlogger: hook into global panic writer
This is a grotesque hack, and hopefully upstream Go will provide a nicer way of doing this, but already it seems quite adept at catching panics. See https://github.com/golang/go/issues/42888 for more info. This requires us to rewrite the ringlogger path to avoid all allocations. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'manager/updatestate.go')
-rw-r--r--manager/updatestate.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/manager/updatestate.go b/manager/updatestate.go
index 9686e92f..e926e63d 100644
--- a/manager/updatestate.go
+++ b/manager/updatestate.go
@@ -24,8 +24,6 @@ const (
var updateState = UpdateStateUnknown
func checkForUpdates() {
- defer printPanic()
-
if !version.IsRunningOfficialVersion() {
log.Println("Build is not official, so updates are disabled")
updateState = UpdateStateUpdatesDisabledUnofficialBuild