99_Utils.pm: fix misuse of Svn_GetFile (Format #113294)

git-svn-id: https://svn.fhem.de/fhem/trunk@22524 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2020-08-02 14:34:02 +00:00
parent 97705217fd
commit 7bda991ef7

View File

@@ -282,8 +282,10 @@ Svn_GetFile($$;$)
print FH $_[2];
close(FH);
Log 1, "SVN download of $from to $to finished";
&$finishFn if($finishFn);
Log 1, $@ if($@);
if($finishFn) {
eval { &$finishFn; };
Log 1, $@ if($@);
}
}});
return "Download started, check the FHEM-log";
}