Skip to content

Commit b732e77

Browse files
committed
dont close saved clients
1 parent ae99797 commit b732e77

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ func main() {
7575
if infoErr != nil {
7676
// Don't print on server connection errors- a few of them are down a lot
7777
// fmt.Printf("%v \"fail\"\n", ipAddr)
78-
defer client.Close()
7978
continue
8079
} else {
8180
// fmt.Printf("%v \"success\"\n", ipAddr)
@@ -87,7 +86,6 @@ func main() {
8786
send_message_to_discord(dictKey, region, oldServerName, info.Name)
8887
}
8988
registeredServers[dictKey] = info.Name
90-
defer client.Close()
9189
}
9290
}
9391
}

0 commit comments

Comments
 (0)