Fixed uptime button bug.

This commit is contained in:
Christian P. MOMON 2021-06-11 04:54:23 +02:00
parent 54a4cea231
commit 7a916178c4

View file

@ -319,12 +319,15 @@ public class UptimeJournal
if (iterator.hasNext())
{
Service current = iterator.next();
if (current.getWebsiteURL() != null)
{
if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR)
{
ended = true;
result = true;
}
}
}
else
{
ended = true;