summaryrefslogtreecommitdiff
path: root/Ivy.pm
diff options
context:
space:
mode:
authordamiano2001-11-26 17:00:40 +0000
committerdamiano2001-11-26 17:00:40 +0000
commit052a75f58b1560335b9d150ab82aad6665470cbe (patch)
tree87c66d61e9e00f0a245fb6709f07c492943d4a77 /Ivy.pm
parent20b889c4162f8d38d797d3e2c21bbea7a5e34e79 (diff)
downloadivy-perl-052a75f58b1560335b9d150ab82aad6665470cbe.zip
ivy-perl-052a75f58b1560335b9d150ab82aad6665470cbe.tar.gz
ivy-perl-052a75f58b1560335b9d150ab82aad6665470cbe.tar.bz2
ivy-perl-052a75f58b1560335b9d150ab82aad6665470cbe.tar.xz
Correction de bug dans la méthode DESTROY, introduit lors de
la suppression des threads (entre la version CVS 1.9 et 1.10)
Diffstat (limited to 'Ivy.pm')
-rw-r--r--Ivy.pm16
1 files changed, 7 insertions, 9 deletions
diff --git a/Ivy.pm b/Ivy.pm
index ccfab4d..0e1d37e 100644
--- a/Ivy.pm
+++ b/Ivy.pm
@@ -544,15 +544,13 @@ sub DESTROY ($)
# pour toutes les connections
foreach my $fd (values %{$self->[sockList]}) {
- foreach my $fd (values %{$self->[sockList]}) {
-# send ($fd, sprintf (MSG_FMT, BYE, 0, ""), 0)
-# or $self->_removeFileDescriptor ($fd);
- # the 2 previous lines seems to works with other ivy-perl applis
- # but DONOT work with ivy-c api.
- # the 2 next lines works. This has to been validated! CM 21/12/2000
- send ($fd, sprintf (MSG_FMT, BYE, 0, ""), 0);
- $self->_removeFileDescriptor ($fd);
- }
+ # send ($fd, sprintf (MSG_FMT, BYE, 0, ""), 0)
+ # or $self->_removeFileDescriptor ($fd);
+ # the 2 previous lines seems to works with other ivy-perl applis
+ # but DONOT work with ivy-c api.
+ # the 2 next lines works. This has to been validated! CM 21/12/2000
+ send ($fd, sprintf (MSG_FMT, BYE, 0, ""), 0);
+ $self->_removeFileDescriptor ($fd);
}
# on clot la socket de signalisation (UDP)