Skip to content

Commit

Permalink
OH NOES. shouldn't have committed that.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed May 3, 2010
1 parent dcb9b30 commit 59f5ade
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/AnyEvent/REPL.pm
Expand Up @@ -82,13 +82,13 @@ class AnyEvent::REPL {
on_completion => sub { $self->_handle_exit },
delegates => [
'CommHandle',
{ Pty => { stderr => 0 } },
{ Pty => { stderr => 1 } },
],
code => sub {
my $args = shift;
IO::Stty::stty(\*STDIN, 'raw');
IO::Stty::stty(\*STDIN, '-echo');
eval {

my $backend = AnyEvent::REPL::Backend->new;
$backend->load_plugins(@{$args->{backend_plugins} || []});

Expand All @@ -102,8 +102,6 @@ class AnyEvent::REPL {
);

$loop->run;
};
if($@){ warn "OH NOES: $@"; exit 0 };
},
);
}
Expand Down

0 comments on commit 59f5ade

Please sign in to comment.