|
@@ -410,10 +410,10 @@ sub _handle_firefox_setup {
|
|
|
sub shutdown_binary {
|
|
sub shutdown_binary {
|
|
|
my ($self) = @_;
|
|
my ($self) = @_;
|
|
|
|
|
|
|
|
- if ( $self->auto_close && defined $self->session_id ) {
|
|
|
|
|
|
|
+ return unless $self->auto_close();
|
|
|
|
|
+ if ( defined $self->session_id ) {
|
|
|
$self->quit();
|
|
$self->quit();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
if ( $self->has_binary_mode && $self->binary_mode ) {
|
|
if ( $self->has_binary_mode && $self->binary_mode ) {
|
|
|
|
|
|
|
|
# Tell the binary itself to shutdown
|
|
# Tell the binary itself to shutdown
|