summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-09 10:41:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-09 12:13:38 +0100
commit6073e15f2871f2699f3e821dc927b3c49187cfb9 (patch)
tree8547c94a1ea144344de59f3cc0f5070472376fad
parentc26423c613619a40df81a3cd30870e4ef2784007 (diff)
proto/simconnect: fix p3d
Issue: #804 Prepar3d was not working due to sending RECV_ID_EXCEPTION on startup.
-rw-r--r--proto-simconnect/ftnoir_protocol_sc.cpp4
1 files 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";