Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimi1010 committed Aug 15, 2024
1 parent 19c10fe commit c74d3cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Pcap++/src/PcapLiveDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ namespace pcpp
{
while (!m_StopThread)
{
if (pcap_dispatch(m_PcapDescriptor.get(), -1, onPacketArrives, reinterpret_cast<uint8_t*>(this)) ==
-1)
if (pcap_dispatch(m_PcapDescriptor.get(), -1, onPacketArrives, reinterpret_cast<uint8_t*>(this)) == -1)
{
PCPP_LOG_ERROR("pcap_dispatch returned an error: " << m_PcapDescriptor.getLastErrorView());
m_StopThread = true;
Expand Down

0 comments on commit c74d3cb

Please sign in to comment.