mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +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.
|
// Destroy destroys the queue. Any error encountered is logged.
|
||||||
func (q *Queue) Destroy() {
|
func (q *Queue) Destroy() {
|
||||||
|
if q == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
q.cancelSocketCallback()
|
q.cancelSocketCallback()
|
||||||
|
|
||||||
if nf := q.getNfq(); nf != nil {
|
if nf := q.getNfq(); nf != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue