1 |
diff -ru work.orig/Mojolicious-6.12/lib/Mojo/UserAgent.pm work/Mojolicious-6.12/lib/Mojo/UserAgent.pm |
2 |
--- work.orig/Mojolicious-6.12/lib/Mojo/UserAgent.pm 2015-06-10 10:14:05.000000000 -0400 |
3 |
+++ work/Mojolicious-6.12/lib/Mojo/UserAgent.pm 2015-07-07 15:05:31.000000000 -0400 |
4 |
@@ -76,7 +76,7 @@ |
5 |
$self->_finish($_, 1) for keys %{$self->{connections} || {}}; |
6 |
|
7 |
# Clean up keep-alive connections |
8 |
- my $loop = $self->_loop(0); |
9 |
+ my $loop = $self->_loop(0) or return; |
10 |
$loop->remove($_->[1]) for @{delete $self->{queue} || []}; |
11 |
$loop = $self->_loop(1); |
12 |
$loop->remove($_->[1]) for @{delete $self->{nb_queue} || []}; |