diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-17 15:23:31 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-17 15:23:31 +0200 |
commit | 8f72e702a114458e92f644160950344a7bf7166a (patch) | |
tree | b79890f8d9a3dc42b9f83e873e9cad6551d31d12 | |
parent | 2304a7dd21639959dc4bcafa3e17374cc087cd0a (diff) |
nix-daemon: Fix compat with older clients
-rw-r--r-- | src/nix-daemon/nix-daemon.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index 265131c61..ab9e4b968 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -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); |