mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 11:16:36 +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";
|
no strict "refs";
|
||||||
$callback->($hash,$r) if($callback);
|
$callback->($hash,$r) if($callback);
|
||||||
use strict "refs";
|
use strict "refs";
|
||||||
return $r;
|
return ($callback ? undef : $r);
|
||||||
};
|
};
|
||||||
|
|
||||||
# Call initFn
|
# Call initFn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user