diff --git a/modules/juce_events/timers/juce_Timer.cpp b/modules/juce_events/timers/juce_Timer.cpp index 1766223764..4c3de7eec1 100644 --- a/modules/juce_events/timers/juce_Timer.cpp +++ b/modules/juce_events/timers/juce_Timer.cpp @@ -95,6 +95,9 @@ public: ~TimerThread() override { + // If this is hit, a timer has outlived the platform event system. + jassert (MessageManager::getInstanceWithoutCreating() != nullptr); + stopThreadAsync(); ShutdownDetector::removeListener (this); stopThread (-1);