Removing logically dead code
This commit is contained in:
parent
4edf66be98
commit
6c3062a768
|
@ -1219,11 +1219,7 @@ switch_status_t rtmp_session_logout(rtmp_session_t *rsession, const char *user,
|
|||
switch_thread_rwlock_wrlock(rsession->account_rwlock);
|
||||
for (account = rsession->account; account; account = account->next) {
|
||||
if (!strcmp(account->user, user) && !strcmp(account->domain, domain)) {
|
||||
if (prev) {
|
||||
prev->next = account->next;
|
||||
} else {
|
||||
rsession->account = account->next;
|
||||
}
|
||||
rsession->account = account->next;
|
||||
}
|
||||
}
|
||||
switch_thread_rwlock_unlock(rsession->account_rwlock);
|
||||
|
|
Loading…
Reference in New Issue