We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb57429 commit a8cd548Copy full SHA for a8cd548
src/zm_master_com_serial.cpp
@@ -776,20 +776,20 @@ static void SER_ProcessEvents()
776
if (!plThread)
777
return;
778
779
- std::lock_guard<std::mutex> rx_lock(plThread->mtx_rx);
780
-
781
- plThread->events &= ~TH0_EVENT_ID;
782
783
- if (plThread->events == 0)
784
- return;
785
786
if (plThread->events & ERR_EVENT_ID)
787
{
788
Com->close();
789
plThread->events = 0;
790
791
}
792
+ std::lock_guard<std::mutex> rx_lock(plThread->mtx_rx);
+
+ plThread->events &= ~TH0_EVENT_ID;
+ if (plThread->events == 0)
+ return;
793
if (plThread->events & RX_EVENT_ID)
794
795
PL_Poll();
0 commit comments