1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 19:25:38 +02:00

[267181] Fix telnet option negotiation loop

This commit is contained in:
Martin Oberhuber 2009-03-05 11:36:50 +00:00
parent ca588d3860
commit caa6942858

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2005, 2008 Wind River Systems, Inc. and others. * Copyright (c) 2005, 2009 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -13,6 +13,7 @@
* Contributors: * Contributors:
* Michael Scharf (Wind River) - split into core, view and connector plugins * Michael Scharf (Wind River) - split into core, view and connector plugins
* Martin Oberhuber (Wind River) - fixed copyright headers and beautified * Martin Oberhuber (Wind River) - fixed copyright headers and beautified
* Martin Oberhuber (Wind River) - [267181] Fix telnet option negotiation loop
*******************************************************************************/ *******************************************************************************/
package org.eclipse.tm.internal.terminal.telnet; package org.eclipse.tm.internal.terminal.telnet;
@ -647,8 +648,7 @@ class TelnetOption implements TelnetCodes
* @return Returns true if the new negotiation should be ignored, false if not. * @return Returns true if the new negotiation should be ignored, false if not.
*/ */
protected boolean ignoreNegotiation() { protected boolean ignoreNegotiation() {
return (System.currentTimeMillis() - negotiationCompletionTime return (System.currentTimeMillis() - negotiationCompletionTime.getTime()) < NEGOTIATION_IGNORE_DURATION;
.getTime()) > NEGOTIATION_IGNORE_DURATION;
} }
/** /**