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:
Juha Niskanen 2020-11-08 18:12:42 +02:00 committed by Alan Carvalho de Assis
parent ca7a7ccbeb
commit 5849d88288

View File

@ -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;
}