mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-02 11:43:40 +02:00
main.go: check return error from shClient.SendCloseMessage()
This commit is contained in:
parent
462f4c388c
commit
b24d8d1e2c
1 changed files with 4 additions and 1 deletions
5
main.go
5
main.go
|
|
@ -118,7 +118,10 @@ func run() {
|
||||||
|
|
||||||
// Cleanly close the connection by sending a close message and then
|
// Cleanly close the connection by sending a close message and then
|
||||||
// waiting (with timeout) for the server to close the connection.
|
// 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 {
|
select {
|
||||||
case <-done:
|
case <-done:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue