Skip to content

Commit d296d38

Browse files
committed
Invert direction after executing L sub-command. This provides
a more natural direction for the following sub-commands.
1 parent f55d9dd commit d296d38

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/commands/rpcpv1_ul_subc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ rtpp_command_ul_as_subc(const struct after_success_h_args *ap,
134134
scmd.sp = scp->env->sessp;
135135
rval = rtpp_command_ul_handle_impl(cfsp, &scmd, sidx, scp->resp, lsp->csp,
136136
&lsp->raddr);
137+
if (rval == 0) {
138+
struct rtpp_stream *t = scp->env->strmp_in;
139+
scp->env->strmp_in = scp->env->strmp_out;
140+
scp->env->strmp_out = t;
141+
}
137142
return (rval);
138143
}
139144

0 commit comments

Comments
 (0)