aboutsummaryrefslogtreecommitdiff
path: root/hotline/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/client.go')
-rw-r--r--hotline/client.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/hotline/client.go b/hotline/client.go
index f8d9c34..23bfe9c 100644
--- a/hotline/client.go
+++ b/hotline/client.go
@@ -186,15 +186,20 @@ func (c *Client) HandleTransaction(ctx context.Context, t *Transaction) error {
return err
}
}
+ } else {
+ c.Logger.Info("Unhandled transaction", "type", tranTypeNames[t.Type], "id", int(binary.BigEndian.Uint16(t.Type[:])))
}
return nil
}
func (c *Client) Disconnect() error {
+ c.mu.Lock()
if c.done != nil {
close(c.done)
+ c.done = nil
}
+ c.mu.Unlock()
return c.Connection.Close()
}