@colyseus/core 0.18.20 → 0.18.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Room.cjs +4 -1
- package/build/Room.cjs.map +2 -2
- package/build/Room.mjs +4 -1
- package/build/Room.mjs.map +2 -2
- package/package.json +5 -5
- package/src/Room.ts +5 -1
package/build/Room.cjs
CHANGED
|
@@ -1232,6 +1232,7 @@ var Room = class _Room {
|
|
|
1232
1232
|
this._reservedSeatTimeouts[sessionId] = setTimeout(() => reconnection.reject(false), seconds * 1e3);
|
|
1233
1233
|
}
|
|
1234
1234
|
const cleanup = () => {
|
|
1235
|
+
clearTimeout(this._reservedSeatTimeouts[sessionId]);
|
|
1235
1236
|
delete this._reconnections[reconnectionToken];
|
|
1236
1237
|
delete this._reservedSeats[sessionId];
|
|
1237
1238
|
delete this._reservedSeatTimeouts[sessionId];
|
|
@@ -1244,7 +1245,6 @@ var Room = class _Room {
|
|
|
1244
1245
|
previousClient.state = import_Transport.ClientState.RECONNECTED;
|
|
1245
1246
|
previousClient.ref = newClient.ref;
|
|
1246
1247
|
previousClient.reconnectionToken = newClient.reconnectionToken;
|
|
1247
|
-
clearTimeout(this._reservedSeatTimeouts[sessionId]);
|
|
1248
1248
|
}, () => {
|
|
1249
1249
|
this.resetAutoDisposeTimeout();
|
|
1250
1250
|
}).finally(() => {
|
|
@@ -1410,6 +1410,9 @@ var Room = class _Room {
|
|
|
1410
1410
|
clearTimeout(this._autoDisposeTimeout);
|
|
1411
1411
|
this._autoDisposeTimeout = void 0;
|
|
1412
1412
|
}
|
|
1413
|
+
for (const sessionId in this._reservedSeatTimeouts) {
|
|
1414
|
+
clearTimeout(this._reservedSeatTimeouts[sessionId]);
|
|
1415
|
+
}
|
|
1413
1416
|
this.clock.clear();
|
|
1414
1417
|
this.clock.stop();
|
|
1415
1418
|
this._inputController?.dispose();
|