Fix windows kext warning on shutdown
This commit is contained in:
@@ -4,6 +4,7 @@ package windowskext
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"errors"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/tevino/abool"
|
"github.com/tevino/abool"
|
||||||
@@ -45,6 +46,11 @@ func Handler(packets chan packet.Packet) {
|
|||||||
|
|
||||||
packetInfo, err := RecvVerdictRequest()
|
packetInfo, err := RecvVerdictRequest()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
// Check if we are done with processing.
|
||||||
|
if errors.Is(ErrKextNotReady) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
log.Warningf("failed to get packet from windows kext: %s", err)
|
log.Warningf("failed to get packet from windows kext: %s", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user