From 00d1ef67636df59460bd4e060f6da4b0c9bcb24c Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sun, 15 Aug 2021 10:39:43 -0700 Subject: Tests and minor fixes --- hotline/client.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hotline/client.go') 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() } -- cgit