diff --git a/packages/loro-websocket/src/client/index.ts b/packages/loro-websocket/src/client/index.ts index 289b3cf..18d763d 100644 --- a/packages/loro-websocket/src/client/index.ts +++ b/packages/loro-websocket/src/client/index.ts @@ -613,6 +613,7 @@ export class LoroWebsocketClient { }, reject: (error: Error) => { console.error("Rejoin failed:", error); + this.pendingRooms.delete(id); this.cleanupRoom(roomId, adaptor.crdtType); this.emitRoomStatus(id, RoomJoinStatus.Error); },