src/server/webdav/multistatus.c

branch
webdav
changeset 309
fc021bd576d4
parent 308
c3cad8f51a24
child 349
7bf652914e9b
--- a/src/server/webdav/multistatus.c	Mon Apr 25 13:54:27 2022 +0200
+++ b/src/server/webdav/multistatus.c	Mon Apr 25 18:30:33 2022 +0200
@@ -258,7 +258,9 @@
 int multistatus_send(Multistatus *ms, SYS_NETFD net) { 
     // make sure every resource is closed
     if(ms->current && !ms->current->resource.isclosed) {
-        msresponse_close((WebdavResource*)ms->current);
+        if(msresponse_close((WebdavResource*)ms->current)) {
+            return 1;
+        }
     }
     
     // start http response

mercurial