Commit 4bbc76ec248db197020f06003332f3824ca4b198
1 parent
b4a28abf
Fixed crash in keep-alive checking
Showing
1 changed file
with
1 additions
and
1 deletions
threaddata.cpp
| @@ -81,7 +81,7 @@ bool ThreadData::doKeepAliveCheck() | @@ -81,7 +81,7 @@ bool ThreadData::doKeepAliveCheck() | ||
| 81 | while (it != clients_by_fd.end()) | 81 | while (it != clients_by_fd.end()) |
| 82 | { | 82 | { |
| 83 | Client_p &client = it->second; | 83 | Client_p &client = it->second; |
| 84 | - if (client->keepAliveExpired()) | 84 | + if (client && client->keepAliveExpired()) |
| 85 | { | 85 | { |
| 86 | it = clients_by_fd.erase(it); | 86 | it = clients_by_fd.erase(it); |
| 87 | } | 87 | } |