diff options
| author | 2026-06-19 16:25:36 +0100 | |
|---|---|---|
| committer | 2026-06-19 16:43:54 +0100 | |
| commit | ebcce68b6095ca9766641ce5dc00aae01d61de06 (patch) | |
| tree | 1031bb5de5cbfd3be5ce37470d593bbe30154c95 /include/modules.h | |
| parent | Rework error reporting and shutting down. (diff) | |
Move server restart logic to the core.
- Properly clean up the process with Cleanup() instead of using
- DieRestart.
- Use close_range on modern Linux instead of the CLOEXEC hack.
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index dd45c6f09..bbbb209b2 100644 --- a/include/modules.h +++ b/include/modules.h @@ -917,8 +917,9 @@ public: /** Called before a server shuts down. * @param reason The reason the server is shutting down. + * @param restarting Whether the server is restarting. */ - virtual void OnShutdown(const std::string& reason); + virtual void OnShutdown(const std::string& reason, bool restarting); /** Called when a local user is attempting to log in to an server operator account. * @param user The user who is attempting to log in. |
