1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00

main.go: check return error from shClient.SendCloseMessage()

This commit is contained in:
Henrik Hautakoski 2022-11-28 15:38:59 +01:00
parent 462f4c388c
commit b24d8d1e2c

View file

@ -118,7 +118,10 @@ func run() {
// Cleanly close the connection by sending a close message and then
// waiting (with timeout) for the server to close the connection.
shClient.SendCloseMessage()
err := shClient.SendCloseMessage()
if err != nil {
log.Println("failed to send close message to ship server", err)
}
select {
case <-done: