boolean (int timeout) { checkStarted(); final OSProcessHandler handler; synchronized (myLock) { // TODO: This line seems to cause situation when exitCode is not set before SvnLineCommand.runCommand() is finished. // TODO: Carefully analyze behavior (on all operating systems) and fix. if (myIsDestroyed) return true; handler = myHandler; } if (timeout == -1) { return handler.waitFor(); } else { return handler.waitFor(timeout); } }