Fix FlushSocket() error check.