2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 16:05:19 +00:00

98_update.pm: avoid warning if called from DOIF (Forum #135611)

git-svn-id: https://svn.fhem.de/fhem/trunk@28123 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-11-03 17:50:08 +00:00
parent 446b774755
commit bda0ab39f7

View File

@ -81,7 +81,7 @@ CommandUpdate($$)
return "An update is already running" if($upd_running); return "An update is already running" if($upd_running);
$upd_running = 1; $upd_running = 1;
if($updateInBackground) { if($updateInBackground) {
CallFn($cl->{NAME}, "ActivateInformFn", $cl, "log"); CallFn($cl->{NAME}, "ActivateInformFn", $cl, "log") if($cl);
sub updDone(@) { $upd_running=0 } sub updDone(@) { $upd_running=0 }
BlockingCall("doUpdateInBackground", {src=>$src,arg=>$arg}, "updDone"); BlockingCall("doUpdateInBackground", {src=>$src,arg=>$arg}, "updDone");
return "Executing the update the background."; return "Executing the update the background.";