Implement review suggestion

This commit is contained in:
Daniel 2022-09-21 15:08:13 +02:00
parent e562e196c9
commit efe174f605

View file

@ -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