mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
During startup the plugins are loaded one by one and init is called for each of them. But due to the already loaded plugins being discarded if one of the plugins throw an error an unclean shutdown that might hang on timers started by plugins occurs. This leads to the master server starting up, printing an error, displaying the shutdown sequence and then hang forever. Fix by storing the plugins loaded into masterPlugins as they are loaded instead only after all of them have been loaded.