Assert(client->sbuf.sock);
Assert(client->state != CL_FREE);
- if (client->state == CL_JUSTFREE) {
- /* SBuf should catch the case */
- slog_warning(client, "state=CL_JUSTFREE, should not happen");
+ /* may happen if close failed */
+ if (client->state == CL_JUSTFREE)
return false;
- }
switch (evtype) {
case SBUF_EV_CONNECT_OK:
Assert(is_server_socket(server));
Assert(server->state != SV_FREE);
- if (server->state == SV_JUSTFREE) {
- /* SBuf should catch the case */
- slog_warning(server, "state=SV_JUSTFREE, should not happen");
+ /* may happen if close failed */
+ if (server->state == SV_JUSTFREE)
return false;
- }
switch (evtype) {
case SBUF_EV_RECV_FAILED: