mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
upgrade_room_route: fix state lock
This was using the lock for the replacement room to send events to the original room, which may or may not cause problems.
This commit is contained in:
parent
ef1b6fe111
commit
aea6019c0a
1 changed files with 1 additions and 2 deletions
|
|
@ -671,7 +671,6 @@ pub(crate) async fn upgrade_room_route(
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
// Change lock to replacement room
|
// Change lock to replacement room
|
||||||
drop(original_state_lock);
|
|
||||||
let mutex_state = Arc::clone(
|
let mutex_state = Arc::clone(
|
||||||
services()
|
services()
|
||||||
.globals
|
.globals
|
||||||
|
|
@ -912,7 +911,7 @@ pub(crate) async fn upgrade_room_route(
|
||||||
},
|
},
|
||||||
sender_user,
|
sender_user,
|
||||||
&body.room_id,
|
&body.room_id,
|
||||||
&replacement_state_lock,
|
&original_state_lock,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue