fixed bug that could cause Outgoing thread to get stuck