From 6073e15f2871f2699f3e821dc927b3c49187cfb9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 9 Feb 2019 10:41:14 +0100 Subject: proto/simconnect: fix p3d Issue: #804 Prepar3d was not working due to sending RECV_ID_EXCEPTION on startup. --- proto-simconnect/ftnoir_protocol_sc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto-simconnect/ftnoir_protocol_sc.cpp b/proto-simconnect/ftnoir_protocol_sc.cpp index 938a0a26..b94d8769 100644 --- a/proto-simconnect/ftnoir_protocol_sc.cpp +++ b/proto-simconnect/ftnoir_protocol_sc.cpp @@ -161,8 +161,8 @@ void simconnect::event_handler(SIMCONNECT_RECV* pData, DWORD, void* self_) default: break; case SIMCONNECT_RECV_ID_EXCEPTION: - qDebug() << "simconnect: got exception"; - self.reconnect = true; + // CAVEAT: can't reconnect here, it breaks Prepar3D. + // the timer on the event handle will take care of failures. break; case SIMCONNECT_RECV_ID_QUIT: qDebug() << "fsx: got quit event"; -- cgit v1.2.3