mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Timer: Warn if the TimerThread outlives the ScopedJuceIniitaliser_GUI
This commit is contained in:
parent
ee641f7baf
commit
c6110c09b5
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue