projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
got routing essentially working
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 7d835171d5d88ff9edc2e2db94a913f82698ba83..970832d53df28987489e28ad48c25b53578b1f5e 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-189,6
+189,18
@@
sub state
dbg('state', "$self->{call} channel state $self->{oldstate} -> $self->{state}\n");
}
dbg('state', "$self->{call} channel state $self->{oldstate} -> $self->{state}\n");
}
+# disconnect this channel
+sub disconnect
+{
+ my $self = shift;
+ my $user = $self->{user};
+ my $conn = $self->{conn};
+ $self->finish();
+ $user->close() if defined $user;
+ $conn->disconnect() if defined $conn;
+ $self->del();
+}
+
# various access routines
#
# various access routines
#