Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 25, 2011
1 parent fdf1da6 commit e21a3bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -134,8 +134,9 @@ sub connection_timeout {
my ($self, $id, $timeout) = @_;
$self = $self->singleton unless ref $self;
return unless my $c = $self->{connections}->{$id};
$c->{timeout} = $timeout and return $self if defined $timeout;
$c->{timeout};
return $c->{timeout} unless defined $timeout;
$c->{timeout} = $timeout;
return $self;
}

sub defer { shift->timer(0 => @_) }
Expand Down

0 comments on commit e21a3bc

Please sign in to comment.