mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Fixed inverted logic in app_add_channel().
Also added some missing doc comments for stasis/app.h. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -95,10 +95,7 @@ int app_add_channel(struct app *app, const struct ast_channel *chan)
|
||||
ast_assert(app != NULL);
|
||||
|
||||
uniqueid = ast_channel_uniqueid(chan);
|
||||
if (!ast_str_container_add(app->channels, uniqueid)) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
return ast_str_container_add(app->channels, uniqueid) ? -1 : 0;
|
||||
}
|
||||
|
||||
void app_remove_channel(struct app* app, const struct ast_channel *chan)
|
||||
|
||||
Reference in New Issue
Block a user