Skip to main content

Module single_instance

Module single_instance 

Source

Constants§

MUTEX_NAME 🔒
RESTART_POLL_MS 🔒
RESTART_WAIT_MS 🔒
How long a restarted instance waits for the one that launched it to close.

Functions§

another_instance_outlasts_restart
another_instance_running for an instance restarted as administrator, which starts while the one that launched it is still closing.
another_instance_running
Whether another copy is running for this user, since two would share the download temp files, cache.json and a game folder’s ledger unguarded.