base: propagate bind_thread result of pd_session

Issue #1418
This commit is contained in:
Alexander Boettcher 2015-02-24 13:18:16 +01:00 committed by Christian Helmuth
parent 679f66667c
commit d7b88afb68
1 changed files with 5 additions and 2 deletions

View File

@ -36,9 +36,12 @@ int Pd_session_component::bind_thread(Thread_capability thread)
Platform_thread *p_thread = cpu_thread->platform_thread();
_pd.bind_thread(p_thread);
cpu_thread->bound(true);
int res = _pd.bind_thread(p_thread);
if (res)
return res;
cpu_thread->bound(true);
return 0;
}