aboutsummaryrefslogtreecommitdiffstats
path: root/send.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-05 05:33:29 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-05 05:33:29 +0200
commit09a9bc289990e3f377a331626b0102283d6f83f4 (patch)
tree109a871092f78672e405a02e034c585d1882b8e0 /send.go
parentMerge branch 'master' of ssh://git.zx2c4.com/wireguard-go (diff)
downloadwireguard-go-09a9bc289990e3f377a331626b0102283d6f83f4.tar.xz
wireguard-go-09a9bc289990e3f377a331626b0102283d6f83f4.zip
Fix infinite loop in exit routine
Diffstat (limited to 'send.go')
-rw-r--r--send.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/send.go b/send.go
index 7423e3b..7abe211 100644
--- a/send.go
+++ b/send.go
@@ -281,9 +281,10 @@ func (device *Device) RoutineEncryption() {
elem.Drop()
}
default:
- break
+ goto out
}
}
+ out:
logDebug.Println("Routine: encryption worker - stopped")
}()