1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-17 04:50:02 +02:00

src/main.go: Only start event loop if server started correctly.

This commit is contained in:
Henrik Hautakoski 2022-08-21 14:12:03 +02:00
parent 0e7ed54c1a
commit 14d833e174
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

View file

@ -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")
}