mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23: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
+2
-2
@@ -208,14 +208,14 @@ class Link {
|
||||
async pingRequestHandler() { }
|
||||
|
||||
/**
|
||||
* Prepare connection for close
|
||||
* Prepare connection for disconnect
|
||||
*
|
||||
* Waits for all pending requests on the connection to resolve.
|
||||
* Sub-classes should implement this handler with code that prevents
|
||||
* additional requests to be sent out before calling the super class
|
||||
* method.
|
||||
*/
|
||||
async shutdownConnectionRequestHandler() {
|
||||
async prepareDisconnectRequestHandler() {
|
||||
let promises = [];
|
||||
for (let waiterType of this._waiters.values()) {
|
||||
for (let waiter of waiterType) {
|
||||
|
||||
Reference in new issue
Block a user