Fix bug in NetSocket.resume() which could lead to out of order packets