Changeset 10152


Ignore:
Timestamp:
10/18/05 00:04:25 (16 years ago)
Author:
piso
Message:

read(): don't call sleep() if timeout is zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/ReaderThread.java

    r7516 r10152  
    22 * ReaderThread.java
    33 *
    4  * Copyright (C) 2000-2004 Peter Graves
     4 * Copyright (C) 2000-2005 Peter Graves
    55 *
    66 * This program is free software; you can redistribute it and/or
     
    9292                if (numChars > 0)
    9393                    sb.append(buf, 0, numChars);
    94                 Thread.sleep(timeOut);
     94                if (timeOut > 0)
     95                    Thread.sleep(timeOut);
    9596            }
    9697            while (reader.ready());
Note: See TracChangeset for help on using the changeset viewer.