1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00

Return after failing deferred

This commit is contained in:
Andrew Mackrodt 2018-07-27 17:01:30 +01:00 committed by Aaron Piotrowski
parent fa9534a038
commit 4f54f94358

View File

@ -323,6 +323,8 @@ class UvDriver implements Driver {
\uv_fs_readlink($this->loop, $path, function ($fh, $target) use ($deferred) {
if (!(bool) $fh) {
$deferred->fail(new FilesystemException("Could not read symbolic link"));
return;
}
$deferred->resolve($target);