nix-daemon: Fix compat with older clients

This commit is contained in:
Eelco Dolstra 2014-07-17 15:23:31 +02:00
parent 2304a7dd21
commit 8f72e702a1
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ static void performOp(bool trusted, unsigned int clientVersion,
settings.set("build-max-jobs", int2String(readInt(from)));
settings.set("build-max-silent-time", int2String(readInt(from)));
if (GET_PROTOCOL_MINOR(clientVersion) >= 2)
settings.useBuildHook = readInt(from) != 0;
if (readInt(from) != 0) settings.useBuildHook = true;
if (GET_PROTOCOL_MINOR(clientVersion) >= 4) {
settings.buildVerbosity = (Verbosity) readInt(from);
logType = (LogType) readInt(from);