zorchenhimer / MovieNight

Single instance video streaming server with integrated chat.
https://discord.gg/F2VSgjJ
MIT License
683 stars 87 forks source link

A user cannot rejoin the room after leaving #52

Closed joeyak closed 5 years ago

joeyak commented 5 years ago

When a user leaves a room, and tries to re-enter, the name says it's taken. This seemed to happen after https://github.com/zorchenhimer/MovieNight/commit/1c6c23da3e8fc88204e528db01cec5051a94d99a image

zorchenhimer commented 5 years ago

Define "leaving". Does the user reload the page, or does the server restart?

For server restarts, the websocket connection closes and isn't reopened when the server comes back up.

joeyak commented 5 years ago

This occured when I refreshed the page.

joeyak commented 5 years ago

I found it when I would change css, hit f5, and try to join with the same username