Commit Diff


commit - 54dbd95c889dfcd42c499f19d3af056f2a706791
commit + cef7eb79352370c77aee8fa482ededde42d8244e
blob - 88c6d614754b1d468d4a3539a1dc043870ca3ab6
blob + 59b77190c0858bfc132c9daf27aa9806a553132e
--- gotd/repo_write.c
+++ gotd/repo_write.c
@@ -2166,6 +2166,8 @@ render_notification(struct imsg *imsg, struct gotd_ims
 		    iev, fd);
 		break;
 	}
+	if (err != NULL)
+		goto done;
 
 	if (fsync(fd) == -1) {
 		err = got_error_from_errno("fsync");