mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-21 05:49:29 +00:00
Fix variable names.
This commit is contained in:
parent
7f041cf95e
commit
a5de42860a
@ -132,14 +132,14 @@ bool NotifyWidget::acquire(int timeout)
|
||||
SHARED_MEM_TYPE *data = (SHARED_MEM_TYPE *)m_mem.data();
|
||||
int elapsed = (QTime::currentTime().msecsSinceStartOfDay() - data->date) / 1000;
|
||||
snoreDebug(SNORE_DEBUG) << m_id << "State:" << data->free << "Time:" << elapsed << "Timeout:" << data->timeout;
|
||||
bool timedout = elapsed > data->timeout;
|
||||
if (data->free || timedout) {
|
||||
if (timedout) {
|
||||
bool isTimedOut = elapsed > data->timeout;
|
||||
if (data->free || isTimedOut) {
|
||||
if (isTimedOut) {
|
||||
snoreDebug(SNORE_DEBUG) << "Notification Lock timed out" << elapsed;
|
||||
}
|
||||
data->free = false;
|
||||
data->date = QTime::currentTime().msecsSinceStartOfDay();
|
||||
data->timeout = timedout;
|
||||
data->timeout = timeout;
|
||||
m_ready = false;
|
||||
out = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user