Skip to content

Commit

Permalink
Fix crash on shutdown LibreELEC/LibreELEC.tv#5645
Browse files Browse the repository at this point in the history
  • Loading branch information
ysard committed Nov 4, 2021
1 parent c2a583d commit 7bfbcd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (C) 2013 Lutz Fiebach ([email protected])
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)

import gc
import syspath
import dbus_utils
import oe
Expand Down Expand Up @@ -104,6 +105,10 @@ def run(self):
oe.stop_service()
service_thread.stop()
dbus_utils.LOOP_THREAD.stop()
# Fix crash on shutdown
# See https://github.com/LibreELEC/LibreELEC.tv/issues/5645
del dbus_utils.BUS
gc.collect()


if __name__ == '__main__':
Expand Down

0 comments on commit 7bfbcd3

Please sign in to comment.