mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +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