doh, my perl sux...

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5878 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Justin Cassidy 2007-10-15 17:40:45 +00:00
parent 557660ca4f
commit d7edc5dc77
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ sub init($;$) {
$self->{_host} = $args->{-host} || "localhost"; $self->{_host} = $args->{-host} || "localhost";
$self->{_port} = $args->{-port} || 8021; $self->{_port} = $args->{-port} || 8021;
$self->{_password} = $args->{-password} || undef; $self->{_password} = $args->{-password} || undef;
$self->{_tolerant} = $args->{-tolerant} || false; $self->{_tolerant} = $args->{-tolerant} || undef;
$self->{events} = []; $self->{events} = [];
my $me = bless $self,$class; my $me = bless $self,$class;
@ -96,8 +96,10 @@ sub readhash($;$) {
sub error($$) { sub error($$) {
my($self,$error) = @_; my($self,$error) = @_;
if ($self->{"_tolerant"}) { if ($self->{"_tolerant"}) {
print "[DIE CROAKED] $error\n"; print "[DIE CROAKED] $error\n";
return 0;
} }
else { else {
die $error; die $error;