changed it so the buffer is completely flushed if there are messages queued when send function is called
changed it so the buffer is completely flushed if there are messages queued when send function is called

OpenSpace/OpenSpace,OpenSpace/OpenSpace,OpenSpace/OpenSpace,OpenSpace/OpenSpace