Skip to content
Snippets Groups Projects
Verified Commit 031814f7 authored by Ole Binder's avatar Ole Binder
Browse files

Refactor: replace on_leave() with on_shutdown()

parent d4fd8146
Branches
Tags
1 merge request!16Upgrade liquidsoap to version 2.2.4
...@@ -86,7 +86,7 @@ def attach_fallback_source(main_stream) = ...@@ -86,7 +86,7 @@ def attach_fallback_source(main_stream) =
# s = replaygain(s) # s = replaygain(s)
s = source.on_track(id="fallback_folder", s, on_fallback_notify) s = source.on_track(id="fallback_folder", s, on_fallback_notify)
s = mksafe(s) s = mksafe(s)
source.on_leave(s, on_fallback_leave_notify) source.on_shutdown(s, on_fallback_leave_notify)
fallback_folder := s fallback_folder := s
main_stream.on_track(on_track_change) main_stream.on_track(on_track_change)
...@@ -112,7 +112,7 @@ def attach_fallback_source(main_stream) = ...@@ -112,7 +112,7 @@ def attach_fallback_source(main_stream) =
# s = replaygain(s) # s = replaygain(s)
s = source.on_track(id="fallback_playlist", s, on_fallback_notify) s = source.on_track(id="fallback_playlist", s, on_fallback_notify)
s = mksafe(s) s = mksafe(s)
source.on_leave(s, on_fallback_leave_notify) source.on_shutdown(s, on_fallback_leave_notify)
fallback_playlist := s fallback_playlist := s
main_stream.on_track(on_track_change) main_stream.on_track(on_track_change)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment