interface: use the correct condition for checking if the pcap fd is open