mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Merge pull request #355 from themighty1/upstreammaster
wait for success when sending packet to chan, don't error out after f…
This commit is contained in:
commit
0dbd8e00ee
1 changed files with 3 additions and 3 deletions
|
@ -16,9 +16,9 @@ import (
|
|||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/evilsocket/opensnitch/daemon/log"
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/layers"
|
||||
"github.com/evilsocket/opensnitch/daemon/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -236,7 +236,7 @@ func go_callback(queueID C.int, data *C.uchar, length C.int, mark C.uint, idx ui
|
|||
}
|
||||
}
|
||||
|
||||
default:
|
||||
fmt.Fprintf(os.Stderr, "Error sending packet to queue channel %d\n", idx)
|
||||
case <-time.After(1 * time.Millisecond):
|
||||
fmt.Fprintf(os.Stderr, "Timed out while sending packet to queue channel %d\n", idx)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue