spsquared / Mountain_Guarder

Meadow Guarder's sister game!
https://mountainguarder.herokuapp.com/
GNU General Public License v3.0
4 stars 1 forks source link

BUG - Memory leak due to sockets and players not getting deleted #235

Closed spsquared closed 2 years ago

spsquared commented 2 years ago

Describe the bug Upon leaving, the socket object still exists and so does the player. This leads to memory leaks and the server slowly uses more of it's heap over time as users connect and disconnect

To Reproduce Steps to reproduce the behavior:

  1. Load page
  2. Reload
  3. Extra socket and player that doesn't need to exist

Screenshots No need. Very simple.

Environment

Logs