Server connections are checked for isConnected() status during poll events
This commit is contained in:
parent
b39db65027
commit
c856c23e3c
|
@ -282,7 +282,7 @@ open class Server<CONNECTION : Connection>(
|
|||
// this manages existing clients (for cleanup + connection polling). This has a concurrent iterator,
|
||||
// so we can modify this as we go
|
||||
connections.forEach { connection ->
|
||||
if (!connection.isClosed()) {
|
||||
if (!(connection.isClosed() || connection.isConnected()) ) {
|
||||
// Otherwise, poll the connection for messages
|
||||
pollCount += connection.poll()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue