diff --git a/src/he/flow.c b/src/he/flow.c index 3a2ba95..694ebd5 100644 --- a/src/he/flow.c +++ b/src/he/flow.c @@ -409,8 +409,13 @@ he_return_code_t he_internal_flow_outside_data_verify_connection(he_conn_t *conn } // Check to see if this is our first message and trigger an event change if it is +#ifdef HE_ENABLE_MULTITHREADED bool expected = false; if (atomic_compare_exchange_strong(&conn->first_message_received, &expected, true)) { +#else + if (!conn->first_message_received) { + conn->first_message_received = true; +#endif he_internal_generate_event(conn, HE_EVENT_FIRST_MESSAGE_RECEIVED); }