X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FNode.pm;h=a3f88a5094d431002cff563b077121499ccd1891;hb=9a46f6c5479427e967cea4f4ea64b0be7decbd7c;hp=f11c40647cfaafa76dba9d872cdcce650617104e;hpb=55c0d0209fa9d9265ff178f54ae9fe5fdddef3c1;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/Node.pm b/lib/Object/Remote/Node.pm index f11c406..a3f88a5 100644 --- a/lib/Object/Remote/Node.pm +++ b/lib/Object/Remote/Node.pm @@ -5,7 +5,6 @@ use Object::Remote::Connector::STDIO; use Object::Remote::Logging qw(:log :dlog); use Object::Remote::WatchDog; use Object::Remote; -use CPS::Future; sub run { my ($class, %args) = @_; @@ -31,7 +30,7 @@ sub run { #a command that clears the alarm in all instances - even #if the Object::Remote::Watchdog is not being used if ($args{watchdog_timeout}) { - Object::Remote::WatchDog->new(timeout => $args{watchdog_timeout}); + Object::Remote::WatchDog->instance(timeout => $args{watchdog_timeout}); } else { #reset connection watchdog from the fatnode alarm(0);