diff --git a/threaddata.cpp b/threaddata.cpp index 939cad1..e0a9c92 100644 --- a/threaddata.cpp +++ b/threaddata.cpp @@ -81,7 +81,7 @@ bool ThreadData::doKeepAliveCheck() while (it != clients_by_fd.end()) { Client_p &client = it->second; - if (client->keepAliveExpired()) + if (client && client->keepAliveExpired()) { it = clients_by_fd.erase(it); }