mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 22:22:27 +00:00
Lock RoomHelper.Rooms properly
This commit is contained in:
parent
02abb7bcab
commit
615b57122e
3 changed files with 5 additions and 3 deletions
|
@ -42,7 +42,7 @@ public class RoomVisualizerController : ControllerBase
|
|||
#if !DEBUG
|
||||
return this.NotFound();
|
||||
#else
|
||||
RoomHelper.Rooms.RemoveAll();
|
||||
lock(RoomHelper.RoomLock) RoomHelper.Rooms.RemoveAll();
|
||||
return this.Redirect("/debug/roomVisualizer");
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue