mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Fix nil check for nil value interfaces
This commit is contained in:
parent
f5e2b0f9af
commit
a30287014c
1 changed files with 4 additions and 0 deletions
|
@ -216,6 +216,10 @@ func (q *Queue) packetHandler(ctx context.Context) func(nfqueue.Attribute) int {
|
|||
|
||||
// Destroy destroys the queue. Any error encountered is logged.
|
||||
func (q *Queue) Destroy() {
|
||||
if q == nil {
|
||||
return
|
||||
}
|
||||
|
||||
q.cancelSocketCallback()
|
||||
|
||||
if nf := q.getNfq(); nf != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue