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