Fix small regression that I missed for 0.4.3

This commit is contained in:
Lucien Greathouse
2018-04-07 22:57:48 -07:00
parent 6fc497f95e
commit 1f5a686570

View File

@@ -188,7 +188,11 @@ function Plugin:startPolling()
end
while self._polling do
local changes = api:getChanges():await()
local changesOk, changes = api:getChanges():await()
if not changesOk then
return Promise.reject(changes)
end
if #changes > 0 then
local routes = {}