mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-20 14:10:44 +00:00
Add unInit, to fix leaked state between tests.
This commit is contained in:
@ -299,4 +299,16 @@ public class QScheduleManager
|
||||
|
||||
return (scheduler);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
** reset the singleton instance (to null); clear the map of schedulers.
|
||||
** Not clear it's ever useful to call in main-code - but can be used for tests.
|
||||
*******************************************************************************/
|
||||
public void unInit()
|
||||
{
|
||||
qScheduleManager = null;
|
||||
schedulers.clear();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user