From: H.G. Muller Date: Mon, 2 May 2011 22:22:40 +0000 (+0200) Subject: Delay loading of second engine until it is used X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=5165b97c9e70d4f93ea9067be1f931d0dd5750a8;p=xboard.git Delay loading of second engine until it is used --- 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(); }