Get the first input cleanly
This commit is contained in:
parent
9d3fe80e93
commit
9d7ff947b1
@ -210,7 +210,7 @@ thread_select_active(struct mux *mux,
|
|||||||
case TH_ST_RUNNING:
|
case TH_ST_RUNNING:
|
||||||
case TH_ST_COOLING:
|
case TH_ST_COOLING:
|
||||||
case TH_ST_WARMING:
|
case TH_ST_WARMING:
|
||||||
*input = mux->input;
|
*input = mux_get_input(mux, 0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
*input = NULL;
|
*input = NULL;
|
||||||
@ -244,7 +244,7 @@ thread_select_running(struct mux *mux,
|
|||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case TH_ST_RUNNING:
|
case TH_ST_RUNNING:
|
||||||
*input = mux->input;
|
*input = mux_get_input(mux, 0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
*input = NULL;
|
*input = NULL;
|
||||||
@ -274,7 +274,7 @@ thread_select_any(struct mux *mux,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
*input = mux->input;
|
*input = mux_get_input(mux, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user