Fixed an issue where the sqltransport would sleep after each message
received. This now only happens if there where no message received.
Potential fix for #1002