mirror of https://github.com/zlatinb/muwire
only process relevant events
parent
e73093e150
commit
494279ac56
|
@ -109,9 +109,12 @@ class ChatServerModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
void onChatDisconnectionEvent(ChatDisconnectionEvent event) {
|
void onChatDisconnectionEvent(ChatDisconnectionEvent event) {
|
||||||
|
if (event.persona != host)
|
||||||
|
return
|
||||||
mvcGroup.childrenGroups.each {k, v ->
|
mvcGroup.childrenGroups.each {k, v ->
|
||||||
v.controller.serverDisconnected()
|
v.controller.serverDisconnected()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void eventLoop() {
|
private void eventLoop() {
|
||||||
|
|
Loading…
Reference in New Issue