mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Fix onExit not being invoked if plugin load fails
Fix instance not properly exiting if an error occurs during the loading of a plugin.
This commit is contained in:
1 parent
1beffb1bfd
commit
b8b8c44083
2 files changed
+22
-10
No files matched your search
+5
-1
@@ -73,7 +73,11 @@ class BaseInstancePlugin {
|
||||
async onStop() { }
|
||||
|
||||
/**
|
||||
* Called when the Factorio server exited
|
||||
* Called when the instance exits
|
||||
*
|
||||
* Invoked when the instance is shut down. This may occur after init
|
||||
* has been called if an error occurs during startup. Note that if
|
||||
* the plugin's init() throws this method will still be invoked.
|
||||
*/
|
||||
onExit() { }
|
||||
|
||||
|
||||
Reference in new issue
Block a user