Skip to content

Commit

Permalink
Merge pull request #9 from jeremiahsnapp/clear_accum
Browse files Browse the repository at this point in the history
Clear Expect's accumulator after login to start from a clean slate
  • Loading branch information
ssinyagin committed Aug 29, 2012
2 parents dab9681 + 24576db commit 41498ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Gerty/CLI/DirectAccess.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ sub connect
} }


$Gerty::log->debug('Logged in at ' . $ipaddr); $Gerty::log->debug('Logged in at ' . $ipaddr);
$exp->clear_accum();
$self->{'expect'} = $exp; $self->{'expect'} = $exp;
return $exp; return $exp;
} }
Expand Down

0 comments on commit 41498ff

Please sign in to comment.