mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Enhance error handling and improve script tracking in RojoTree and ServeSession
- Added a test to verify the functionality of script tracking updates in RojoTree, ensuring proper addition and removal of script references. - Improved error handling in ServeSession by clearing temporary script IDs upon disconnection to prevent potential memory leaks. - Updated API logic to filter out empty properties and children during instance addition, enhancing the integrity of the synchronization process. These changes aim to optimize script management and enhance the robustness of the session handling and tree operations.
This commit is contained in:
parent
9d6b48a53e
commit
ec51c14a41
5 changed files with 33 additions and 79 deletions
|
|
@ -1020,6 +1020,7 @@ end
|
|||
function ServeSession:__stopInternal(err)
|
||||
self:__setStatus(Status.Disconnected, err)
|
||||
self.__apiContext:disconnect()
|
||||
table.clear(self.__instanceMap.scriptsOnlyTempIds)
|
||||
self.__instanceMap:stop()
|
||||
self.__changeBatcher:stop()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue