aboutsummaryrefslogtreecommitdiff
path: root/hotline/client.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2021-08-15 10:39:43 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2021-08-15 10:39:43 -0700
commit00d1ef67636df59460bd4e060f6da4b0c9bcb24c (patch)
tree23c0b75535ab187bd690e03e286b64395efeba2f /hotline/client.go
parentc5d9af5aa4d9fb20316be45ab1b775bcf61bcad5 (diff)
Tests and minor fixes
Diffstat (limited to 'hotline/client.go')
-rw-r--r--hotline/client.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/hotline/client.go b/hotline/client.go
index cf88d8a..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
},
@@ -699,9 +699,5 @@ func (c *Client) HandleTransaction(t *Transaction) error {
}
func (c *Client) Disconnect() error {
- err := c.Connection.Close()
- if err != nil {
- return err
- }
- return nil
+ return c.Connection.Close()
}