Make plugin connection much more robust, with better errors

This commit is contained in:
Lucien Greathouse
2018-04-07 22:24:21 -07:00
parent c2f7e268ff
commit 52eea667a7
7 changed files with 170 additions and 86 deletions

View File

@@ -71,8 +71,8 @@ function RouteMap:clear()
self._map = {}
self._reverseMap = {}
for object in pairs(self._connectionsByRbx) do
object:Disconnect()
for _, connection in pairs(self._connectionsByRbx) do
connection:Disconnect()
end
self._connectionsByRbx = {}