Properly stop room's processor

This commit is contained in:
Sergey Matveev 2020-12-04 13:28:53 +03:00
parent b7fb219307
commit 761dda2575
2 changed files with 2 additions and 1 deletions

View File

@ -74,6 +74,7 @@ EventsCycle:
log.Println(rn, "emptied room") log.Println(rn, "emptied room")
} }
delete(rooms, rn) delete(rooms, rn)
r.events <- ClientEvent{eventType: EventTerm}
close(r.events) close(r.events)
} }
} }

View File

@ -33,7 +33,7 @@ import (
) )
const ( const (
Version = "1.9.0" Version = "1.9.1"
StateTopicFilename = "topic" StateTopicFilename = "topic"
StateKeyFilename = "key" StateKeyFilename = "key"