openziti / desktop-edge-win

Provides a Ziti client for Windows
Apache License 2.0
35 stars 13 forks source link

assigning nil after successful closing #479

Closed mary-dcouto closed 2 years ago

mary-dcouto commented 2 years ago

closing the tun twice causes nil error. Removing one function call rts.close() after shutdown will cause the program to exit soon before defer rts.close is finished. So, A=assigned nil after closing the tun