mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
revert unintentional commit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8086 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -10,7 +10,6 @@ sub init($;$) {
|
||||
my $proto = shift;
|
||||
my $args = shift;
|
||||
my $class = ref($proto) || $proto;
|
||||
|
||||
$self->{_host} = $args->{-host} || "localhost";
|
||||
$self->{_port} = $args->{-port} || 8021;
|
||||
$self->{_password} = $args->{-password} || undef;
|
||||
@@ -18,14 +17,10 @@ sub init($;$) {
|
||||
|
||||
$self->{events} = [];
|
||||
my $me = bless $self,$class;
|
||||
|
||||
|
||||
|
||||
if (!$self->{_password}) {
|
||||
return $me;
|
||||
}
|
||||
if ($me->connect()) {
|
||||
print Dumper $me;
|
||||
return $me;
|
||||
} else {
|
||||
return undef;
|
||||
|
Reference in New Issue
Block a user