summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nDPId-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nDPId-test.c b/nDPId-test.c
index ce26b50bc..11cd81bc8 100644
--- a/nDPId-test.c
+++ b/nDPId-test.c
@@ -439,6 +439,12 @@ static void * nDPIsrvd_mainloop_thread(void * const arg)
{
if (handle_data_event(epollfd, &events[i]) != 0)
{
+ if (mock_arpa_desc == events[i].data.ptr)
+ {
+ // arpa mock does not care about shutdown events
+ disconnect_client(epollfd, mock_arpa_desc);
+ continue;
+ }
logger(1, "%s", "nDPIsrvd data event handler failed");
THREAD_ERROR_GOTO(arg);
}