aboutsummaryrefslogtreecommitdiff
path: root/src/internal/poll/fd_poll_runtime.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/poll/fd_poll_runtime.go')
-rw-r--r--src/internal/poll/fd_poll_runtime.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/internal/poll/fd_poll_runtime.go b/src/internal/poll/fd_poll_runtime.go
index beb0f7d6a6..b072af00ea 100644
--- a/src/internal/poll/fd_poll_runtime.go
+++ b/src/internal/poll/fd_poll_runtime.go
@@ -39,10 +39,6 @@ func (pd *pollDesc) init(fd *FD) error {
serverInit.Do(runtime_pollServerInit)
ctx, errno := runtime_pollOpen(uintptr(fd.Sysfd))
if errno != 0 {
- if ctx != 0 {
- runtime_pollUnblock(ctx)
- runtime_pollClose(ctx)
- }
return errnoErr(syscall.Errno(errno))
}
pd.runtimeCtx = ctx