britzl / defnet

Defold networking examples
MIT License
65 stars 16 forks source link

Fixed P2P_discovery sockets not being released on stop #13

Closed NoCounterfeit closed 4 months ago

NoCounterfeit commented 4 months ago

Hello. There's a problem with p2p_discovery.lua in that, when .stop gets called on an active listener, the socket is never closed. This blocks .listen from working a second time.

Similarly, line 70 attempts udp_broadcast:close() but udp_broadcast isn't defined.