aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/errors.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-12 00:04:40 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-12 03:07:59 -0600
commitc273ce15e796bcbf441c233adbe8b113fd2e5991 (patch)
tree9e620accca016b1520f9437ceb6c948ea53f46a1 /service/errors.go
parenttunneltracker: redo deletion state machine (diff)
downloadwireguard-windows-c273ce15e796bcbf441c233adbe8b113fd2e5991.tar.xz
wireguard-windows-c273ce15e796bcbf441c233adbe8b113fd2e5991.zip
tunneltracker: don't track tunnels that haven't been started
Otherwise we get the hasn't-been-started-yet error, and the tracker quits. Meanwhile this is reported back to the ui as an error. While we're at it, don't let multiple trackers be run, in the event that the at-start tracker races with the installation tracker. And, make sure we actually get the deletion notification.
Diffstat (limited to 'service/errors.go')
-rw-r--r--service/errors.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/errors.go b/service/errors.go
index ea6147a9..fd6bc6ab 100644
--- a/service/errors.go
+++ b/service/errors.go
@@ -95,4 +95,5 @@ func combineErrors(err error, serviceError Error) error {
const (
serviceDOES_NOT_EXIST uint32 = 0x00000424
serviceMARKED_FOR_DELETE uint32 = 0x00000430
+ serviceNEVER_STARTED uint32 = 0x00000435
)