It seems to me that this line is not correct:

if (timeToSleep < 0) {

I think it should be "<=". Otherwise if timeToSleep is (accidentally) 0, the
following wait() will wait undefinitely, according to its specification.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to