Don't os.Exit

This commit is contained in:
Neil Alexander 2019-09-19 09:56:27 +01:00
parent 681e9afc79
commit 39461cb603
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
2 changed files with 2 additions and 1 deletions

2
build
View File

@ -1,5 +1,7 @@
#!/bin/sh
set -ef
PKGSRC=${PKGSRC:-github.com/yggdrasil-network/yggdrasil-go/src/version}
PKGNAME=${PKGNAME:-$(sh contrib/semver/name.sh)}
PKGVER=${PKGVER:-$(sh contrib/semver/version.sh --bare)}

View File

@ -296,7 +296,6 @@ func (n *node) shutdown() {
n.multicast.Stop()
n.tuntap.Stop()
n.core.Stop()
os.Exit(0)
}
func (n *node) sessionFirewall(pubkey *crypto.BoxPubKey, initiator bool) bool {