summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchatty2004-09-07 08:41:58 +0000
committerchatty2004-09-07 08:41:58 +0000
commit52439d8a1f3cc2c799e1a53bd09772eb219ef2da (patch)
tree7eb72d396e2d3716d28b0ed5fcda8b92a5205f39
parent1bd1e6347c68c51a2134c774108fd126930c97b6 (diff)
downloadivy-perl-52439d8a1f3cc2c799e1a53bd09772eb219ef2da.zip
ivy-perl-52439d8a1f3cc2c799e1a53bd09772eb219ef2da.tar.gz
ivy-perl-52439d8a1f3cc2c799e1a53bd09772eb219ef2da.tar.bz2
ivy-perl-52439d8a1f3cc2c799e1a53bd09772eb219ef2da.tar.xz
Avoid multiple calls to init
-rw-r--r--Ivy.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ivy.pm b/Ivy.pm
index 66dcdbd..a5a095d 100644
--- a/Ivy.pm
+++ b/Ivy.pm
@@ -298,6 +298,11 @@ use constant messWhenReady => $constantIndexer++;
#############################################################################
sub init
{
+ if (defined $fileEventFunc) {
+ print STDERR "Ivy warning: init has already been called\n";
+ return;
+ }
+
my $class = shift if (@_ and $_[0] eq __PACKAGE__);
my (%options) = @_;