diff --git a/src/source-pcap.c b/src/source-pcap.c index 75eb0f61ab..e8c027cec7 100644 --- a/src/source-pcap.c +++ b/src/source-pcap.c @@ -132,7 +132,7 @@ int ReceivePcap(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq) { break; } - if (tv->flags != 0) { + if (tv->flags & THV_KILL || tv->flags & THV_PAUSE) { printf("ReceivePcap: interrupted.\n"); return 0; }