Skip to content
Browse files

Need to require unconditionally

  • Loading branch information...
1 parent 8ee025a commit 63323c657b9cccf094194e2470eaf47e8fa7211a Stefan O'Rear committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/IO/Pty/HalfDuplex.pm
View
4 lib/IO/Pty/HalfDuplex.pm
@@ -125,10 +125,10 @@ sub new {
if (! defined $args{backend}) {
$args{backend} = ($_default_backend ||= _probe_backends());
- } else {
- eval "require IO::Pty::HalfDuplex::$args{backend}";
}
+ eval "require IO::Pty::HalfDuplex::$args{backend}";
+
("IO::Pty::HalfDuplex::" . $args{backend})->new(@_);
}

0 comments on commit 63323c6

Please sign in to comment.
Something went wrong with that request. Please try again.