]> git.tuebingen.mpg.de Git - paraslash.git/commit
aft: Do not invalidate status items when closing the audio file table.
authorAndre Noll <maan@systemlinux.org>
Sat, 4 Jun 2011 11:38:02 +0000 (13:38 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 Jun 2011 11:38:02 +0000 (13:38 +0200)
commitdfb5f82f2cf5f9e6b7367196a8a2b76b323ffb36
tree1f9444196052235e5051eeef8631d5b720f7d4c2
parent6d6ede092858166d203a39da1734bd715d47cf1d
aft: Do not invalidate status items when closing the audio file table.

Currently aft_close() frees the global variables status_items and
parser_friendly_status_items which are used for the stat comand of
para_server. This function is called on exit and when para_server
receives SIGHUP, the latter may happen while streaming. In this case
clients which connect after the SIGHUP do not see any aft status
items until the audio file changes.

Fix this flaw simply by not freeing the status item buffers until
they are recomputed anyway.
aft.c