mirror of
https://github.com/danog/file.git
synced 2024-11-30 04:19:39 +01:00
Return after failing deferred
This commit is contained in:
parent
fa9534a038
commit
4f54f94358
@ -323,6 +323,8 @@ class UvDriver implements Driver {
|
|||||||
\uv_fs_readlink($this->loop, $path, function ($fh, $target) use ($deferred) {
|
\uv_fs_readlink($this->loop, $path, function ($fh, $target) use ($deferred) {
|
||||||
if (!(bool) $fh) {
|
if (!(bool) $fh) {
|
||||||
$deferred->fail(new FilesystemException("Could not read symbolic link"));
|
$deferred->fail(new FilesystemException("Could not read symbolic link"));
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$deferred->resolve($target);
|
$deferred->resolve($target);
|
||||||
|
Loading…
Reference in New Issue
Block a user