Close instance

It should not destroy :P
This commit is contained in:
c0re100 2022-02-06 10:39:26 +08:00
parent a7ee5501e3
commit a339293774
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF
5 changed files with 5 additions and 5 deletions

View file

@ -52,7 +52,7 @@ func main() {
signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) signal.Notify(ch, os.Interrupt, syscall.SIGSEGV)
go func() { go func() {
<-ch <-ch
client.Destroy() client.Close()
}() }()
me, err := client.GetMe() me, err := client.GetMe()

View file

@ -60,7 +60,7 @@ func main() {
signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) signal.Notify(ch, os.Interrupt, syscall.SIGSEGV)
go func() { go func() {
<-ch <-ch
client.Destroy() client.Close()
}() }()
me, err := client.GetMe() me, err := client.GetMe()

View file

@ -60,7 +60,7 @@ func main() {
signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) signal.Notify(ch, os.Interrupt, syscall.SIGSEGV)
go func() { go func() {
<-ch <-ch
client.Destroy() client.Close()
}() }()
me, err := client.GetMe() me, err := client.GetMe()

View file

@ -60,7 +60,7 @@ func main() {
signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) signal.Notify(ch, os.Interrupt, syscall.SIGSEGV)
go func() { go func() {
<-ch <-ch
client.Destroy() client.Close()
}() }()
me, err := client.GetMe() me, err := client.GetMe()

View file

@ -60,7 +60,7 @@ func main() {
signal.Notify(ch, os.Interrupt, syscall.SIGSEGV) signal.Notify(ch, os.Interrupt, syscall.SIGSEGV)
go func() { go func() {
<-ch <-ch
client.Destroy() client.Close()
}() }()
me, err := client.GetMe() me, err := client.GetMe()