diff options
| author | Shulhan <ms@kilabit.info> | 2018-08-21 12:34:30 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-08-21 12:34:30 +0700 |
| commit | c508965b974664236bf0076e2ef2550a8bdb528a (patch) | |
| tree | 2c968f8bef9351a8a30d37cc779b30e256703de1 /cmd | |
| parent | 4c97608b28ae548d6b676bda2afd09ed100fb8e5 (diff) | |
| download | rescached-c508965b974664236bf0076e2ef2550a8bdb528a.tar.xz | |
Call stop() on error when starting server
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/rescached/main.go | 1 |
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) } |
