Commit Diff


commit - 32fdf3fddec1fabda12ee185d866d1db180cfe7d
commit + 37b4ccba4a069ecbe9ee46da8b91850668400ccc
blob - 8b3f29ef924d653a8a2d06521c42f3ce34718ea4
blob + 9555322131694aae331af8a3a6bbdc8250c1d531
--- gotd/gotd.c
+++ gotd/gotd.c
@@ -1569,11 +1569,13 @@ gotd_dispatch_repo_child(int fd, short event, void *ar
 			break;
 		case GOTD_IMSG_REPO_CHILD_READY:
 			err = connect_session(client);
-			if (err)
-				break;
-			err = connect_notifier_and_session(client);
 			if (err)
 				break;
+			if (client_is_writing(client)) {
+				err = connect_notifier_and_session(client);
+				if (err)
+					break;
+			}
 			err = connect_repo_child(client, proc);
 			break;
 		default: