summaryrefslogtreecommitdiffhomepage
path: root/rwcancel
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-14 06:10:08 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-14 06:10:08 +0200
commit8b30278ce666a74b46f607b47bf3fbe87744c016 (patch)
tree7c42da35e3152b528cb2a73a13d05da541f2a659 /rwcancel
parent17262dfd62a548e44269535ce60a905613901063 (diff)
No more finalizer for rwcancel
Diffstat (limited to 'rwcancel')
-rw-r--r--rwcancel/rwcancel_unix.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/rwcancel/rwcancel_unix.go b/rwcancel/rwcancel_unix.go
index 7f2c9e0..739a8c3 100644
--- a/rwcancel/rwcancel_unix.go
+++ b/rwcancel/rwcancel_unix.go
@@ -9,7 +9,6 @@ import (
"errors"
"golang.org/x/sys/unix"
"os"
- "runtime"
"syscall"
)
@@ -52,10 +51,6 @@ func NewRWCancel(fd int) (*RWCancel, error) {
return nil, err
}
- runtime.SetFinalizer(&rwcancel, func(rw *RWCancel) {
- rw.Cancel()
- })
-
return &rwcancel, nil
}