mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 06:17:15 +01:00
fixed SF# 2890489:Unused code in TimedNotificationQueue::wait
This commit is contained in:
parent
ffd027c38a
commit
1568abf9be
@ -1,7 +1,7 @@
|
||||
//
|
||||
// TimedNotificationQueue.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Foundation/src/TimedNotificationQueue.cpp#1 $
|
||||
// $Id: //poco/1.3/Foundation/src/TimedNotificationQueue.cpp#5 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Notifications
|
||||
@ -162,7 +162,7 @@ bool TimedNotificationQueue::wait(Timestamp::TimeDiff interval)
|
||||
{
|
||||
Timestamp now;
|
||||
Timestamp::TimeDiff sleep = interval <= MAX_SLEEP ? interval : MAX_SLEEP;
|
||||
if (_nfAvailable.tryWait(static_cast<long>((interval + 999)/1000)))
|
||||
if (_nfAvailable.tryWait(static_cast<long>((sleep + 999)/1000)))
|
||||
return true;
|
||||
interval -= now.elapsed();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user