Browse Source

fix offline servers processing

main
ghost 10 months ago
parent
commit
741f6a3227
  1. 5
      src/Controller/CrontabController.php
  2. 5
      src/Controller/MainController.php
  3. 4
      templates/default/main/index.html.twig

5
src/Controller/CrontabController.php

@ -224,6 +224,11 @@ class CrontabController extends AbstractController @@ -224,6 +224,11 @@ class CrontabController extends AbstractController
continue;
}
catch (\Throwable $error)
{
continue;
}
finally
{
$server->Disconnect();

5
src/Controller/MainController.php

@ -163,6 +163,11 @@ class MainController extends AbstractController @@ -163,6 +163,11 @@ class MainController extends AbstractController
continue;
}
catch (\Throwable $error)
{
$status = false;
}
finally
{
$server->Disconnect();

4
templates/default/main/index.html.twig

@ -48,13 +48,13 @@ @@ -48,13 +48,13 @@
{% block main_content %}
{% for server in servers %}
<div class="border-default padding-8-px margin-y-8-px">
{% if server.info.HostName %}
{% if server.info.HostName is defined %}
<h2>{{ server.info.HostName }} [#{{ server.crc32server }}]</h2>
{% else %}
<h2>#{{ server.crc32server }}</h2>
{% endif %}
<hr />
{% if server.description.title %}
{% if server.description.title is defined %}
<div class="margin-y-8-px">
{{ server.description.title }}
</div>

Loading…
Cancel
Save