projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
consistent file name for scripts
[irspy-moved-to-github.git]
/
lib
/
ZOOM
/
IRSpy
/
Task.pm
diff --git
a/lib/ZOOM/IRSpy/Task.pm
b/lib/ZOOM/IRSpy/Task.pm
index
8e3f251
..
4340198
100644
(file)
--- a/
lib/ZOOM/IRSpy/Task.pm
+++ b/
lib/ZOOM/IRSpy/Task.pm
@@
-6,6
+6,8
@@
use 5.008;
use strict;
use warnings;
use strict;
use warnings;
+use Scalar::Util;
+
=head1 NAME
ZOOM::IRSpy::Task - base class for tasks in IRSpy
=head1 NAME
ZOOM::IRSpy::Task - base class for tasks in IRSpy
@@
-34,7
+36,7
@@
sub new {
my $class = shift();
my($conn, $udata, $options, %cb) = @_;
my $class = shift();
my($conn, $udata, $options, %cb) = @_;
- return bless {
+ my $this = bless {
irspy => $conn->{irspy},
conn => $conn,
udata => $udata,
irspy => $conn->{irspy},
conn => $conn,
udata => $udata,
@@
-42,6
+44,11
@@
sub new {
cb => \%cb,
timeRegistered => time(),
}, $class;
cb => \%cb,
timeRegistered => time(),
}, $class;
+
+ #Scalar::Util::weaken($this->{irspy});
+ #Scalar::Util::weaken($this->{udata});
+
+ return $this;
}
}