X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/72dd37f1abb2b550aaaac48eac677403d5664797..decc2fbf5db4a05aec93462ad35d890930bddd04:/hotline/client.go?ds=sidebyside diff --git a/hotline/client.go b/hotline/client.go index dd113c9..33ec511 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -200,7 +200,7 @@ var clientHandlers = map[uint16]clientTHandler{ Handler: handleTranServerMsg, }, tranKeepAlive: clientTransaction{ - Name: "tranKeepAlive", + Name: "tranKeepAlive", Handler: func(client *Client, transaction *Transaction) (t []Transaction, err error) { return t, err }, @@ -698,18 +698,6 @@ func (c *Client) HandleTransaction(t *Transaction) error { return nil } -func (c *Client) Connected() bool { - // c.Agreed == true && - if c.UserAccess != nil { - return true - } - return false -} - func (c *Client) Disconnect() error { - err := c.Connection.Close() - if err != nil { - return err - } - return nil + return c.Connection.Close() }