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
enable OPAC record syntax test again, see 8e8489f6c6191b3335adb1f1b285d9c7ad724023
[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
0cbce82
..
a115649
100644
(file)
--- a/
lib/ZOOM/IRSpy/Task.pm
+++ b/
lib/ZOOM/IRSpy/Task.pm
@@
-1,4
+1,3
@@
-# $Id: Task.pm,v 1.6 2007-05-09 11:30:53 mike Exp $
package ZOOM::IRSpy::Task;
package ZOOM::IRSpy::Task;
@@
-6,6
+5,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
+35,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
+43,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;
}
}
@@
-89,7
+95,6
@@
sub set_options {
defined $value ? "'$value'" : "undefined");
my $old = $this->conn()->option($key, $value);
if ($persistent) {
defined $value ? "'$value'" : "undefined");
my $old = $this->conn()->option($key, $value);
if ($persistent) {
- print "deleting '*$key'<br/>\n";
delete $this->{options}->{"*$key"}
} else {
$this->{options}->{$key} = $old;
delete $this->{options}->{"*$key"}
} else {
$this->{options}->{$key} = $old;