mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Fix bug with prematurely purging placeholder displays.
This commit is contained in:
@@ -208,7 +208,7 @@ func (arena *Arena) MarkDisplayDisconnected(displayId string) {
|
||||
defer displayRegistryMutex.Unlock()
|
||||
|
||||
if existingDisplay, ok := arena.Displays[displayId]; ok {
|
||||
if existingDisplay.DisplayConfiguration.Type == PlaceholderDisplay &&
|
||||
if existingDisplay.ConnectionCount == 1 && existingDisplay.DisplayConfiguration.Type == PlaceholderDisplay &&
|
||||
existingDisplay.DisplayConfiguration.Nickname == "" &&
|
||||
len(existingDisplay.DisplayConfiguration.Configuration) == 0 {
|
||||
// If the display is an unconfigured placeholder, just remove it entirely to prevent clutter.
|
||||
|
||||
Reference in New Issue
Block a user