mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
Improve diagnostics messages and yet another check for the phantom date
This commit is contained in:
parent
1548a215f6
commit
dcf68dac37
@ -286,7 +286,16 @@ bool Machine::AddSession(Session *s)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (sessionlist.contains(s->session())) {
|
if (sessionlist.contains(s->session())) {
|
||||||
qCritical() << "Machine::AddSession called with duplicate session" << s->session() << "for machine" << serial();
|
qCritical() << "Machine::AddSession called with duplicate session" << s->session()
|
||||||
|
<< "["+QDateTime::fromTime_t(s->session()).toString("MMM dd, yyyy hh:mm:ss")+"]"
|
||||||
|
<< "for machine" << serial();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (s->first() == 0) {
|
||||||
|
qWarning() << "Machine::AddSession called with session" << s->session()
|
||||||
|
<< "["+QDateTime::fromTime_t(s->session()).toString("MMM dd, yyyy hh:mm:ss")+"]"
|
||||||
|
<< "with first=0";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -298,7 +307,6 @@ bool Machine::AddSession(Session *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
updateChannels(s);
|
updateChannels(s);
|
||||||
|
|
||||||
if (s->session() > highest_sessionid) {
|
if (s->session() > highest_sessionid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user