mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-14 04:56:55 +02:00
No more finalizer for rwcancel
This commit is contained in:
parent
17262dfd62
commit
8b30278ce6
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue