fixed the threading

Packets actually get returned to the main thread instead of being
processed in the receive thread.
fixed warning about return