Skip to content

Commit 37dca44

Browse files
committed
deaddrop: fix stopping writeable output and refactor
Co-developed-by: Gemini 2.5 Pro
1 parent a3aea71 commit 37dca44

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugins/deaddrop/protocol_lws_deaddrop.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ handler_server_http_writeable(struct vhd_deaddrop *vhd,
592592
return 0;
593593
}
594594

595-
static void
595+
static int
596596
handler_server_raw_file_rx(struct vhd_deaddrop *vhd, struct lws *wsi)
597597
{
598598
#if defined(__linux__)
@@ -602,6 +602,10 @@ handler_server_raw_file_rx(struct vhd_deaddrop *vhd, struct lws *wsi)
602602
int n = (int)read(lws_get_socket_fd(wsi), ev_buf, sizeof(ev_buf));
603603
lwsl_info("%s: inotify event (%d), rescanning upload dir\n", __func__, n);
604604
scan_upload_dir(vhd);
605+
606+
return n;
607+
#else
608+
return 0;
605609
#endif
606610
}
607611

0 commit comments

Comments
 (0)