2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

DevIo.pm: return error _only_ in the callback, if specified (Forum #111832)

git-svn-id: https://svn.fhem.de/fhem/trunk@22127 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-06-06 14:42:34 +00:00
parent c538be8eaf
commit 5a00fbd6ac

View File

@ -353,7 +353,7 @@ DevIo_OpenDev($$$;$)
no strict "refs";
$callback->($hash,$r) if($callback);
use strict "refs";
return $r;
return ($callback ? undef : $r);
};
# Call initFn