[ 
http://dev.sourcefabric.org/browse/LS-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Romain Beauxis closed LS-477.
-----------------------------

    Fix Version/s: 1.0
       Resolution: Fixed

Fixed in hg.

> source.shutdown doesnt unregister input.harbor server commands
> --------------------------------------------------------------
>
>                 Key: LS-477
>                 URL: http://dev.sourcefabric.org/browse/LS-477
>             Project: Liquidsoap
>          Issue Type: Bug
>          Components: Liquidsoap
>    Affects Versions: 1.0
>         Environment: latest liquidsoap from svn, last revision r8205
>            Reporter: Rodger
>             Fix For: 1.0
>
>
> i have function
> def register(name)
>     mp = "/users/#{name}"
>     streams = ref []
>     def delete_streams()
>       log("delete streams #{string_of(!streams)}")
>       def log_and_shutdown(s)
>         log("Shutdown source #{source.id(s)}")
>         source.shutdown(s)
>       end
>       list.iter(fun(s) -> ignore(log_and_shutdown(s)), !streams)
>     end
>     live = input.harbor(id = "ubc-in-harbor-#{name}", port = 10000, auth = 
> fun(l,p) -> auth(name, p), on_disconnect = delete_streams,  mp)
>     icecast_out = output.icecast(id = "ubc-out-icecast-#{name}",fallible = 
> true, host = syshost, port = sysport, password = syspass, mount = mp, mp3, 
> live)
>     file_out = output.file(id = "ubc-out-file-#{name}", fallible = true, mp3, 
> "#{dump_path}/#{name}/%Y%m%d%H%M%S.mp3", live)
>     streams := [icecast_out, file_out, live]
>     mp
> end
> what i want: i register channel through telnet server, after user connect on 
> their own channel, and after disconnect i remove source
> what i got: after removing, functions (like ubc-in-harbor-qwe.status) still 
> exists
> unexpected effect: if i:
>  register channel,
>  connect to it,
>  disconnect( source removed ),
>  register channel,
>  connect to it,
>  disconnect( source removed )
>  then if i try to execute "help" command in telnet server, server return 
> "ERROR: Invalid_argument("equal: functional value")"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à