From 1ad5cf6e661fcae928069b3c3c2fe252f58f6883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 21 May 2019 12:35:55 +0200 Subject: [PATCH] daemon: Keep the proxy config in the daemon class around. --- pantalaimon/daemon.py | 1 + pantalaimon/main.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pantalaimon/daemon.py b/pantalaimon/daemon.py index e9d5b1a..c1cfb51 100755 --- a/pantalaimon/daemon.py +++ b/pantalaimon/daemon.py @@ -34,6 +34,7 @@ from pantalaimon.thread_messages import (AcceptSasMessage, CancelSasMessage, class ProxyDaemon: name = attr.ib() homeserver = attr.ib() + conf = attr.ib() data_dir = attr.ib() send_queue = attr.ib() recv_queue = attr.ib() diff --git a/pantalaimon/main.py b/pantalaimon/main.py index 4fc567a..cd2764f 100644 --- a/pantalaimon/main.py +++ b/pantalaimon/main.py @@ -33,6 +33,7 @@ async def init(data_dir, server_conf, send_queue, recv_queue): proxy = ProxyDaemon( server_conf.name, server_conf.homeserver, + server_conf, data_dir, send_queue=send_queue, recv_queue=recv_queue,