Fix to allow the use of promises in sync adapters
Merge pull request #613 from jpntex/patch-1

Fix to allow the use of promises in sync adapters