git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5877
d0543943-73ff-0310-b7d9-
9358b9ac24b2
$self->{_host} = $args->{-host} || "localhost";
$self->{_port} = $args->{-port} || 8021;
$self->{_password} = $args->{-password} || undef;
+ $self->{_tolerant} = $args->{-tolerant} || false;
+
$self->{events} = [];
my $me = bless $self,$class;
if (!$self->{_password}) {
sub error($$) {
my($self,$error) = @_;
- die $error;
+ if ($self->{"_tolerant"}) {
+ print "[DIE CROAKED] $error\n";
+ }
+ else {
+ die $error;
+ }
}