Browse Source

don't confuse `args` and `class_path`

Simon Krajewski 9 years ago
parent
commit
0cdc94faed
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/server.ml

+ 3 - 3
src/server.ml

@@ -450,13 +450,13 @@ let rec wait_loop process_params verbose accept =
 					CompilationServer.remove_file cs fkey;
 					CompilationServer.remove_file cs fkey;
 				end;
 				end;
 				try
 				try
-					if (Hashtbl.find arguments sign) <> ctx.com.args then begin
+					if (Hashtbl.find arguments sign) <> ctx.com.class_path then begin
 						if verbose then print_endline (Printf.sprintf "%sclass paths changed, resetting directories" (sign_string ctx.com));
 						if verbose then print_endline (Printf.sprintf "%sclass paths changed, resetting directories" (sign_string ctx.com));
-						Hashtbl.replace arguments sign ctx.com.args;
+						Hashtbl.replace arguments sign ctx.com.class_path;
 						CompilationServer.clear_directories cs sign;
 						CompilationServer.clear_directories cs sign;
 					end;
 					end;
 				with Not_found ->
 				with Not_found ->
-					Hashtbl.add arguments sign ctx.com.args;
+					Hashtbl.add arguments sign ctx.com.class_path;
 					()
 					()
 			);
 			);
 			ctx.com.print <- (fun str -> write ("\x01" ^ String.concat "\x01" (ExtString.String.nsplit str "\n") ^ "\n"));
 			ctx.com.print <- (fun str -> write ("\x01" ^ String.concat "\x01" (ExtString.String.nsplit str "\n") ^ "\n"));