mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Close instance
It should not destroy :P
This commit is contained in:
parent
a7ee5501e3
commit
a339293774
5 changed files with 5 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue