Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nall-chan committed Jan 25, 2024
1 parent cd7d9e5 commit b476dd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ONVIF IO/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,17 @@ public function RequestAction(string $Ident, mixed $Value): void
$this->Renew();
return;
case 'Reload':
$this->Unsubscribe();
if ($this->GetStatus() == IS_INACTIVE) {
$this->WriteAttributeString(\ONVIF\IO\Attribute::ConsumerAddress, '');
return;
}
if ($this->GetStatus() == IS_ACTIVE) { // block childs
$this->SetStatus(IS_INACTIVE);
}
$this->SetTimerInterval(\ONVIF\IO\Timer::RenewSubscription, 0);
if ($this->isSubscribed) {
$this->Unsubscribe();
}
$this->UpdateFormField('ErrorTitle', 'caption', $this->Translate('Please wait!'));
$this->UpdateFormField('ErrorText', 'caption', $this->Translate('Determine abilities of this device'));
$this->UpdateFormField('ErrorPopup', 'visible', true);
Expand Down

0 comments on commit b476dd9

Please sign in to comment.