mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-08 03:34:02 +02:00
brmd::Door::register(): Fix observer refcount id
This commit is contained in:
parent
a5f625fd4c
commit
28735abed8
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ sub _default {
|
||||||
sub register {
|
sub register {
|
||||||
my ($self, $sender) = @_[OBJECT, SENDER];
|
my ($self, $sender) = @_[OBJECT, SENDER];
|
||||||
my $sid = $sender->ID;
|
my $sid = $sender->ID;
|
||||||
$poe_kernel->refcount_increment($sid, 'observer_WWW'); # XXX: No decrement
|
$poe_kernel->refcount_increment($sid, 'observer_door'); # XXX: No decrement
|
||||||
push (@{$self->{'observers'}}, $sid);
|
push (@{$self->{'observers'}}, $sid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue