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 027266f commit 2d4097b
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 @@ -298,11 +298,17 @@ public function RequestAction($Ident, $Value)
$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 2d4097b

Please sign in to comment.