mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +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
+1
-1
@@ -353,7 +353,7 @@ class Control extends link.Link {
|
||||
}
|
||||
|
||||
async shutdown() {
|
||||
await link.messages.shutdownConnection.send(this);
|
||||
await link.messages.prepareDisconnect.send(this);
|
||||
this.connector.close(1001, "Control Quit")
|
||||
await events.once(this.connector, "close");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user