Fix closing connection when shutting down server
This commit is contained in:
parent
b4bf4d4e15
commit
e60c1c147b
@ -86,6 +86,8 @@ func (c *client) ticker(ctx context.Context) {
|
||||
|
||||
func (c *client) Close() {
|
||||
c.cancel()
|
||||
|
||||
c.conn.Close()
|
||||
}
|
||||
|
||||
// channel represents a stream that is sent to the server
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user