mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
RbxSession refactoring stuff
This commit is contained in:
parent
9ad0eabb85
commit
e09d23d6c2
5 changed files with 242 additions and 139 deletions
|
|
@ -63,7 +63,8 @@ impl Server {
|
|||
(GET) (/api/rojo) => {
|
||||
// Get a summary of information about the server.
|
||||
|
||||
let tree = self.session.tree.read().unwrap();
|
||||
let rbx_session = self.session.rbx_session.lock().unwrap();
|
||||
let tree = rbx_session.get_tree();
|
||||
|
||||
Response::json(&ServerInfoResponse {
|
||||
server_version: self.server_version,
|
||||
|
|
@ -127,7 +128,8 @@ impl Server {
|
|||
None => return rouille::Response::text("Malformed ID list").with_status_code(400),
|
||||
};
|
||||
|
||||
let tree = self.session.tree.read().unwrap();
|
||||
let rbx_session = self.session.rbx_session.lock().unwrap();
|
||||
let tree = rbx_session.get_tree();
|
||||
|
||||
let message_cursor = message_queue.get_message_cursor();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue