boards/sim/sim/sim/src/sim_touchscreen.c: add missing nx_disconnect
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
parent
ca7a7ccbeb
commit
5849d88288
@ -205,9 +205,11 @@ int sim_tsc_setup(int minor)
|
||||
pthread_attr_setstacksize(&attr, CONFIG_SIM_LISTENER_STACKSIZE);
|
||||
|
||||
ret = pthread_create(&thread, &attr, sim_listener, NULL);
|
||||
pthread_attr_destroy(&attr);
|
||||
if (ret != 0)
|
||||
{
|
||||
gerr("ERROR: pthread_create failed: %d\n", ret);
|
||||
nx_disconnect(g_simtc.hnx);
|
||||
return -ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user