Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DisconnectClient cause panic #5

Open
selimanac opened this issue Mar 5, 2019 · 0 comments
Open

DisconnectClient cause panic #5

selimanac opened this issue Mar 5, 2019 · 0 comments

Comments

@selimanac
Copy link

When 3th connection disconnects:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1285132]

goroutine 35 [running]:
github.com/selimanac/goreal.(*RoomManager).DisconnectClient(0x0, 0xc00018e0a0)
        /Users/selimanac/go/src/github.com/selimanac/goreal/room_manager.go:95 +0x22
github.com/selimanac/goreal.(*GameServer).DisconnectClient(0xc00000e360, 0xc00018e0a0)
        /Users/selimanac/go/src/github.com/selimanac/goreal/server.go:140 +0xf4
github.com/selimanac/goreal.(*Hub).run(0xc000090020, 0xc00000e360)
        /Users/selimanac/go/src/github.com/selimanac/goreal/hub.go:43 +0x332
created by github.com/selimanac/goreal.(*GameServer).Start
        /Users/selimanac/go/src/github.com/selimanac/goreal/server.go:38 +0x15b
exit status 2
The terminal process terminated with exit code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant