fix: update transport session when restoring session

This commit is contained in:
2025-10-15 15:39:08 -05:00
parent ed9002f436
commit c2f3454a38

View File

@@ -654,12 +654,16 @@ export class ServerPool {
this.session = session;
this.options.session = session;
// Update session for all existing connections
// Update session for all existing connections and their transports
for (const conn of this.pool) {
(conn as any).session = session;
if ((conn as any).transport) {
(conn as any).transport.session = session;
}
}
for (const conn of this.used) {
(conn as any).session = session;
if ((conn as any).transport) {
(conn as any).transport.session = session;
}
}
}