mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
src/main.go: Only start event loop if server started correctly.
This commit is contained in:
parent
0e7ed54c1a
commit
14d833e174
1 changed files with 5 additions and 4 deletions
|
|
@ -156,10 +156,11 @@ func main() {
|
|||
addr = argv_listen_addr()
|
||||
|
||||
// Start listening to TCP Connections
|
||||
spawnTcpServer(addr);
|
||||
|
||||
// Run the signal event loop.
|
||||
signalEventLoop()
|
||||
err := spawnTcpServer(addr)
|
||||
if err == nil {
|
||||
// Run the signal event loop.
|
||||
signalEventLoop()
|
||||
}
|
||||
|
||||
logger.Info("Shutdown")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue