projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6de7782
)
add delete_interface on disconnect
R_1_51B
author
minima
<minima>
Tue, 24 Aug 2004 08:12:11 +0000
(08:12 +0000)
committer
minima
<minima>
Tue, 24 Aug 2004 08:12:11 +0000
(08:12 +0000)
perl/DXProt.pm
patch
|
blob
|
history
perl/RouteDB.pm
patch
|
blob
|
history
diff --git
a/perl/DXProt.pm
b/perl/DXProt.pm
index 69085f358a146eee342562bf5cfc5b2ae8d9ba4f..c96d787e41ba3f27010ef46b385d72765a84e2df 100644
(file)
--- a/
perl/DXProt.pm
+++ b/
perl/DXProt.pm
@@
-2307,6
+2307,8
@@
sub disconnect
eph_del_regex("^PC1[679].*$c");
}
}
+
+ RouteDB::delete_interface($call);
# remove them from the pc19list as well
while (my ($k,$v) = each %pc19list) {
diff --git
a/perl/RouteDB.pm
b/perl/RouteDB.pm
index c9c01ff4544565ea80651a35f78fb0dcd4526622..42cf693f76f65a6d06772b3a68b36aaa131e6979 100644
(file)
--- a/
perl/RouteDB.pm
+++ b/
perl/RouteDB.pm
@@
-106,6
+106,14
@@
sub delete
delete $ref->{item}->{$interface} if $ref;
}
+sub delete_interface
+{
+ my $interface = shift;
+ foreach my $ref (values %list) {
+ delete $ref->{item}->{$interface};
+ }
+}
+
#
# generic AUTOLOAD for accessors
#