1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 19:52:16 +00:00

Properly close connections when killing the daemon

This commit is contained in:
Alban Féron 2021-11-21 11:43:28 +01:00
parent b4e737c243
commit 8f5a9a3b73
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165

View File

@ -69,6 +69,8 @@ class Daemon:
conn = self.__listener.accept()
self.__handle_connection(conn)
self.__listener.close()
def start_scan(self, folders=[], force=False):
if not folders:
with db_session: