sync retry after RPC error
Merge pull request #40 from matiu/bug/02sync

MAGICAL!