Skip to content

Commit

Permalink
fixup: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneo committed Jan 15, 2025
1 parent a902f4b commit 668e517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/lib/event_engine/posix_engine/file_descriptors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ IF_POSIX_SOCKET(
return fd;
}
int flags;
int fdescriptor = *fd;
int fdescriptor = fd.fd();
if (nonblock) {
flags = fcntl(fdescriptor, F_GETFL, 0);
if (flags < 0) goto close_and_error;
Expand All @@ -104,7 +104,7 @@ IF_POSIX_SOCKET(
addr = EventEngine::ResolvedAddress(peer_addr.address(), len);
return fd;
close_and_error:
Close(fd.fd);
Close(*fd);
return FileDescriptorResult::Error();
})

Expand Down

0 comments on commit 668e517

Please sign in to comment.