Sandertv / gophertunnel

General purpose library for Minecraft Bedrock Edition software written in Go
MIT License
411 stars 93 forks source link

errors.Is() always returns false with net.OpError from raknet #228

Closed Dasciam closed 1 month ago

Dasciam commented 1 month ago

The problem is in the following code: https://github.com/Sandertv/gophertunnel/blob/3c4144b2130899ef2249c438540c27908d2f5a37/minecraft/dial.go#L289 https://github.com/Sandertv/gophertunnel/blob/3c4144b2130899ef2249c438540c27908d2f5a37/minecraft/conn.go#L443 https://github.com/Sandertv/gophertunnel/blob/3c4144b2130899ef2249c438540c27908d2f5a37/minecraft/listener.go#L278

Calling errors.Is() always returns false, because of this, panic is spawned every time a player leaves the server

Sandertv commented 1 month ago

Could you try commit 7270e9e and see if this still happens?

Dasciam commented 1 month ago

Issue still exists

Dasciam commented 1 month ago

All works good. Sorry for misleading...