aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-08-21 12:34:30 +0700
committerShulhan <ms@kilabit.info>2018-08-21 12:34:30 +0700
commitc508965b974664236bf0076e2ef2550a8bdb528a (patch)
tree2c968f8bef9351a8a30d37cc779b30e256703de1 /cmd
parent4c97608b28ae548d6b676bda2afd09ed100fb8e5 (diff)
downloadrescached-c508965b974664236bf0076e2ef2550a8bdb528a.tar.xz
Call stop() on error when starting server
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rescached/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/rescached/main.go b/cmd/rescached/main.go
index 54965dc..077e2ad 100644
--- a/cmd/rescached/main.go
+++ b/cmd/rescached/main.go
@@ -91,6 +91,7 @@ func main() {
err = rcd.Start(cfg.listen)
if err != nil {
+ stop()
log.Println(err)
}