nxtrace / NTrace-V1

NextTrace Dev
https://www.nxtrace.org
GNU General Public License v3.0
256 stars 22 forks source link

fix: close when `createWsConn` failed #68

Closed dyxushuai closed 1 month ago

dyxushuai commented 1 month ago
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1029e8708]

goroutine 1 [running]:
github.com/gorilla/websocket.(*Conn).Close(0x14000192180?)
        github.com/gorilla/websocket@v1.5.2/conn.go:344 +0x18
github.com/nxtrace/NTrace-core/cmd.Excute.func1()
        github.com/nxtrace/NTrace-core/cmd/cmd.go:188 +0x24
github.com/nxtrace/NTrace-core/cmd.Excute()
        github.com/nxtrace/NTrace-core/cmd/cmd.go:359 +0x1d34
main.main()
        github.com/nxtrace/NTrace-core/main.go:8 +0x1c
tsosunchia commented 1 month ago

非常感谢,我将尽快进行测试。