Skip to content

Commit e45d664

Browse files
committed
Emit room error before cleanup of room on js client
1 parent edf4065 commit e45d664

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/loro-websocket/src/client

packages/loro-websocket/src/client/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@ export class LoroWebsocketClient {
717717
void this.sendRejoinRequest(roomId, msg.roomId, adaptor, active.room, auth);
718718
} else {
719719
// Remove local room state so client does not auto-retry unless requested
720-
this.cleanupRoom(msg.roomId, msg.crdt);
721720
this.emitRoomStatus(roomId, RoomJoinStatus.Error);
721+
this.cleanupRoom(msg.roomId, msg.crdt);
722722
}
723723
break;
724724
}

0 commit comments

Comments
 (0)