Only yield Server if there are clients for it

This commit is contained in:
Thor77 2017-07-24 14:49:25 +02:00
parent 7077446627
commit 96d6e9f050
1 changed files with 3 additions and 2 deletions

View File

@ -131,5 +131,6 @@ def parse_logs(log_glob, ident_map=None, online_dc=True, *args, **kwargs):
events = filter(None, map(_parse_line, f))
# chain apply events to Client-obj
clients.apply_events(itertools.chain.from_iterable(events))
if len(clients) >= 1:
# assemble Server-obj and yield
yield Server(virtualserver_id, clients)