mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 16:03:23 -05:00
[command] Only execute "bottom half" function if main command function
returns 0
This commit is contained in:
parent
2f8c061c11
commit
16149d5c61
@ -15,6 +15,10 @@ enum command_state {
|
||||
* If the function has pending events to complete, it needs to return
|
||||
* COMMAND_PENDING with 'ret' set to the number of pending events to wait for.
|
||||
*
|
||||
* If the function returns with COMMAND_END, command execution will proceed
|
||||
* with the "bottem half" function (if passed to the command_exec function) only
|
||||
* if 'ret' is 0.
|
||||
*
|
||||
* @param arg Opaque pointer passed by command_exec_sync or command_exec_async
|
||||
* @param ret Pointer to the return value for the caller of the command
|
||||
* @return COMMAND_END if there are no pending events (function execution is
|
||||
|
Loading…
Reference in New Issue
Block a user