mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-04 12:03:43 +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()
|
addr = argv_listen_addr()
|
||||||
|
|
||||||
// Start listening to TCP Connections
|
// Start listening to TCP Connections
|
||||||
spawnTcpServer(addr);
|
err := spawnTcpServer(addr)
|
||||||
|
if err == nil {
|
||||||
// Run the signal event loop.
|
// Run the signal event loop.
|
||||||
signalEventLoop()
|
signalEventLoop()
|
||||||
|
}
|
||||||
|
|
||||||
logger.Info("Shutdown")
|
logger.Info("Shutdown")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue