processPendingChanges copies the pending keys into a new set to prevent a 'mutated while being enumerated' crash
Merge pull request #44 from frankielaguna/develop

Fixes crash while processing offline changes