22 lines
728 B
Plaintext
22 lines
728 B
Plaintext
|
diff -ru work.orig/Mojolicious-6.12/lib/Mojo/Server/Daemon.pm work/Mojolicious-6.12/lib/Mojo/Server/Daemon.pm
|
||
|
--- work.orig/Mojolicious-6.12/lib/Mojo/Server/Daemon.pm 2015-07-07 15:03:05.000000000 -0400
|
||
|
+++ work/Mojolicious-6.12/lib/Mojo/Server/Daemon.pm 2015-07-08 17:00:16.000000000 -0400
|
||
|
@@ -20,7 +20,7 @@
|
||
|
return if Mojo::Util::_global_destruction();
|
||
|
my $self = shift;
|
||
|
$self->_remove($_) for keys %{$self->{connections} || {}};
|
||
|
- my $loop = $self->ioloop;
|
||
|
+ my $loop = $self->ioloop or return;
|
||
|
$loop->remove($_) for @{$self->acceptors};
|
||
|
}
|
||
|
|
||
|
@@ -209,7 +209,7 @@
|
||
|
|
||
|
sub _remove {
|
||
|
my ($self, $id) = @_;
|
||
|
- $self->ioloop->remove($id);
|
||
|
+ $self->ioloop->remove($id) if $self->ioloop;
|
||
|
$self->_close($id);
|
||
|
}
|
||
|
|