mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 15:33:12 +09:00
Rename connection shutdown to prepare disconnect
Rename the shutdownConnection request to prepareDisconnect to better reflect its actual purpose.
This commit is contained in:
1 parent
e7d1039942
commit
47ea8f5477
7 files changed
+18
-17
No files matched your search
@@ -381,7 +381,7 @@ class BaseConnection extends link.Link {
|
||||
}
|
||||
|
||||
async shutdown(code, reason) {
|
||||
await link.messages.shutdownConnection.send(this);
|
||||
await link.messages.prepareDisconnect.send(this);
|
||||
this.connector.close(code, reason);
|
||||
await events.once(this.connector, "close");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user