Jelajahi Sumber

--onboard190npshot on Windows: the route dispatches the cards' async callbacks there too

Only Linux ran juce::detail::dispatchNextMessageOnSystemQueue, so on Windows every answer of the card stayed queued
and 29 checks failed (the route had only been run on Linux).
Ka1-S 2 minggu lalu
induk
melakukan
a4d4e9ab42
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/OnboardShot190np.inc

+ 1 - 1
src/OnboardShot190np.inc

@@ -36,7 +36,7 @@
         const auto settle = [&offline] {
             for (int k = 0; k < 4; ++k)
                 offline.dispatchPendingMessages();
-#if JUCE_LINUX
+#if JUCE_LINUX || JUCE_WINDOWS // (rollup 0.1.31 step 2: on Windows the cards' callAsync never ran: 29 checks failed there)
             for (int i = 0; i < 256 && juce::detail::dispatchNextMessageOnSystemQueue (true); ++i) {} // (clicks and the cards' async callbacks)
 #endif
         };