Wait for message receive.