got routing essentially working
[spider.git] / perl / DXChannel.pm
index 7d835171d5d88ff9edc2e2db94a913f82698ba83..970832d53df28987489e28ad48c25b53578b1f5e 100644 (file)
@@ -189,6 +189,18 @@ sub state
   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
 
 #