Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid an infinite loop which could jam ProxyService
If an operation with an empty dictionary of entities to create/update was added to the queue, data[i] could become empty with task_count[i] still being positive. Therefore no data would have ever been sent (and thus task_count would have never been reset to zero) but the loop would also have never yielded to other greenlets, making ProxyService stuck (and taking up 100% of the CPU).
- Loading branch information