Skip to content
Snippets Groups Projects
Commit 115ff1bb authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Don't hang if the command is blank

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 83d8317d
Branches
Tags
No related merge requests found
......@@ -101,7 +101,7 @@ if ($action eq '-' || !defined $action || $action eq '') {
$attribs->{completion_function} = \&tab_completion;
while (defined($_ = $term->readline($prompt))) {
(logoff() and exit) if $_ =~ /exit|quit/; # Give them a way to exit the "terminal"
print send_command($_);
print send_command($_) if $_ !~ m/^\s*$/;
}
} else {
while (<>) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment