mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-24 14:45:56 +00:00
Fix incorrect synchronization for Plugin:_pull that would make polling flaky
This commit is contained in:
@@ -289,9 +289,14 @@ function Plugin:syncIn()
|
|||||||
table.insert(routes, {name})
|
table.insert(routes, {name})
|
||||||
end
|
end
|
||||||
|
|
||||||
self:_pull(api, info.project, routes)
|
local pullSuccess, pullResult = self:_pull(api, info.project, routes):await()
|
||||||
|
|
||||||
self._syncInProgress = false
|
self._syncInProgress = false
|
||||||
|
|
||||||
|
if not pullSuccess then
|
||||||
|
return Promise.reject(pullResult)
|
||||||
|
end
|
||||||
|
|
||||||
print("Rojo: Sync successful!")
|
print("Rojo: Sync successful!")
|
||||||
end)
|
end)
|
||||||
:catch(function(err)
|
:catch(function(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user