mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +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() {
|
func (c *client) Close() {
|
||||||
c.cancel()
|
c.cancel()
|
||||||
|
|
||||||
|
c.conn.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
// channel represents a stream that is sent to the server
|
// channel represents a stream that is sent to the server
|
||||||
|
Reference in New Issue
Block a user