Commit 5706659c2e009e32df772344c33ec9ec17e4618f

Shut down when pcap_dispatch returns < 1
filter.c
(4 / 1)
  
215215 }
216216
217217 while (!shuttingDown) {
218 pcap_dispatch(pcap_socket, -1, (pcap_handler)filter_packet, NULL);
218 int r = pcap_dispatch(pcap_socket, -1, (pcap_handler)filter_packet, NULL);
219 if (r < 1) {
220 shuttingDown = 1;
221 }
219222 if(shouldExpunge) {
220223 expunge();
221224 }