Commit Diff
--- gotd/session_write.c +++ gotd/session_write.c @@ -901,7 +901,7 @@ session_dispatch_repo_child(int fd, short event, void break; } - if (do_disconnect) { + if (do_disconnect || err) { if (err) disconnect_on_error(client, err); else
--- gotd/session_write.c +++ gotd/session_write.c @@ -901,7 +901,7 @@ session_dispatch_repo_child(int fd, short event, void break; } - if (do_disconnect) { + if (do_disconnect || err) { if (err) disconnect_on_error(client, err); else