fixed threading issue in RestSQLAction
Merge pull request #776 from crate/hau/fix-threading-issue

Fixed threading issue in RestSQLAction