Fixed an edge case where socket posted message a little later