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 55e797b2a7
commit cb2f9dd442

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