]> git.tuebingen.mpg.de Git - paraslash.git/commit
Fix grab client resume.
authorAndre Noll <maan@systemlinux.org>
Tue, 29 Mar 2011 22:10:29 +0000 (00:10 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 29 Mar 2011 22:10:29 +0000 (00:10 +0200)
commit566c81c69d90ae7585b6ede886f9cfc37c2fed02
treed0cfb542d536654e53ea729955beb6b48897ce29
parentd54dd90e5c4a15727491b9880a534eb948fe82e5
Fix grab client resume.

An active grab client is moved to the inactive list if para_server
stops playing and the grab client is not operating in one-shot mode. In
this state, despite its buffer tree node pointer being NULL, the task
associated with the grab client remains active. This causes para_server
to abort due to the assertion btrn != NULL in btr_node_status().

Fix this bug by always unregistering the task, one-shot mode or not,
and re-registering it later, at the same time the new buffer tree
node for the grab client is allocated.
grab_client.c