Close instance
It should not destroy :P
This commit is contained in:
parent
a7ee5501e3
commit
a339293774
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue