summaryrefslogtreecommitdiffhomepage
path: root/proto-simconnect/ftnoir_protocol_sc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'proto-simconnect/ftnoir_protocol_sc.cpp')
-rw-r--r--proto-simconnect/ftnoir_protocol_sc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-simconnect/ftnoir_protocol_sc.cpp b/proto-simconnect/ftnoir_protocol_sc.cpp
index 9a1db9b5..42cdf596 100644
--- a/proto-simconnect/ftnoir_protocol_sc.cpp
+++ b/proto-simconnect/ftnoir_protocol_sc.cpp
@@ -62,7 +62,7 @@ void simconnect::run()
break;
}
- if (reconnect)
+ if (reconnect.load(std::memory_order_relaxed))
break;
if (!SUCCEEDED(hr = simconnect_calldispatch(handle, event_handler, (void*)this)))