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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user