Skip to content

Commit a6cb28e

Browse files
Fix for webui.mod lostdcc()
1 parent 7d16031 commit a6cb28e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mod/webui.mod/webui.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ static const uint8_t alert[] = {0x15, 0x03, 0x01, 0x00, 0x02, 0x02, 0x0a};
5353
static void webui_http_eof(int idx)
5454
{
5555
debug2("webui: webui_http_eof() idx %i sock %li", idx, dcc[idx].sock);
56-
dcc[idx].u.webui_listen_idx = 0;
5756
killsock(dcc[idx].sock);
57+
dcc[idx].u.webui_listen_idx = 0;
5858
lostdcc(idx);
5959
}
6060

@@ -83,6 +83,7 @@ static void put_404(int idx) {
8383
tputs(dcc[idx].sock, response, i);
8484
nfree(response);
8585
killsock(dcc[idx].sock);
86+
dcc[idx].u.webui_listen_idx = 0;
8687
lostdcc(idx);
8788
}
8889

0 commit comments

Comments
 (0)