Fix send thread sleeping while work is ready to be done