From efe174f6054bc3fa0a0906c554b935634e7ae059 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 21 Sep 2022 15:08:13 +0200 Subject: [PATCH] Implement review suggestion --- network/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/connection.go b/network/connection.go index a57c89e4..990f786e 100644 --- a/network/connection.go +++ b/network/connection.go @@ -596,7 +596,7 @@ func (conn *Connection) StopFirewallHandler() { conn.firewallHandler = nil // Signal the packet handler worker that it can stop. - conn.pktQueue <- nil + close(conn.pktQueue) // Unset the packet queue so that it can be freed. conn.pktQueue = nil