Moves yield around resource before checking if the invitation was successfully sent
Moves yield around resource before checking if invitation accepted succeded
Merge pull request #514 from edelpero/updates_yield

Moves yield around resource before checking if the invitation was successfully sent