From 5165b97c9e70d4f93ea9067be1f931d0dd5750a8 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 3 May 2011 00:22:40 +0200 Subject: [PATCH] Delay loading of second engine until it is used --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 43379fc..d68df79 100644 --- a/backend.c +++ b/backend.c @@ -841,6 +841,7 @@ ReplaceEngine(ChessProgramState *cps, int n) appData.noChessProgram = False; appData.clockMode = True; InitEngine(cps, n); + if(n) return; // only startup first engine immediately; second can wait savCps = cps; // parameter to LoadEngine passed as globals, to allow scheduled calling :-( LoadEngine(); } -- 1.7.0.4