mirror of
https://github.com/datarhei/core.git
synced 2025-12-24 13:07:56 +08:00
Fix closing connection when shutting down server
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user