X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FProxy.pm;h=18e8436ddb966cc77d674cdc6759d937d68a72e3;hp=68706bddff69d8f9bdb22f59cda96522cfbe8505;hb=55c0d0209fa9d9265ff178f54ae9fe5fdddef3c1;hpb=5ccce2d5c1fb651f83c73c811069003e4a591a53 diff --git a/lib/Object/Remote/Proxy.pm b/lib/Object/Remote/Proxy.pm index 68706bd..18e8436 100644 --- a/lib/Object/Remote/Proxy.pm +++ b/lib/Object/Remote/Proxy.pm @@ -10,11 +10,11 @@ sub AUTOLOAD { if ((caller(0)||'') eq 'start') { $to_fire = "start::${to_fire}"; } - + unless ($self->{remote}->is_valid) { croak "Attempt to use Object::Remote::Proxy backed by an invalid handle"; } - + $self->{remote}->$to_fire($method => @_); }