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:
parent
c538be8eaf
commit
5a00fbd6ac
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user