ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/Node.pm
(Generate patch)

Comparing AnyEvent-MP/MP/Node.pm (file contents):
Revision 1.36 by root, Fri Sep 4 21:01:22 2009 UTC vs.
Revision 1.37 by root, Sun Sep 6 00:13:21 2009 UTC

232} 232}
233 233
234sub monitor { 234sub monitor {
235 my ($self, $portid, $cb) = @_; 235 my ($self, $portid, $cb) = @_;
236 236
237 return $cb->(no_such_port => "cannot monitor nonexistent port") 237 return $cb->(no_such_port => "cannot monitor nonexistent port", "$self->{id}#$portid")
238 unless exists $AnyEvent::MP::Kernel::PORT{$portid}; 238 unless exists $AnyEvent::MP::Kernel::PORT{$portid};
239 239
240 $AnyEvent::MP::Kernel::LMON{$portid}{$cb+0} = $cb; 240 $AnyEvent::MP::Kernel::LMON{$portid}{$cb+0} = $cb;
241} 241}
242 242

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines