|
|
|
@ -116,7 +116,6 @@ func (c *Client) Connect() error {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
c.client = tdlibClient
|
|
|
|
|
c.listener = tdlibClient.GetListener()
|
|
|
|
|
c.locks.authorizationReady.Done()
|
|
|
|
|
c.online = true
|
|
|
|
|
|
|
|
|
@ -211,12 +210,11 @@ func (c *Client) interactor() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *Client) forceClose() {
|
|
|
|
|
//c.listener.Close()
|
|
|
|
|
c.online = false
|
|
|
|
|
c.authorizer = nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Online checks if the updates listener is alive
|
|
|
|
|
func (c *Client) Online() bool {
|
|
|
|
|
return c.listener != nil && c.online //c.listener.IsActive()
|
|
|
|
|
return c.online
|
|
|
|
|
}
|
|
|
|
|