From 2cf4a791ee3edbecd7204f6273f5c961a0d092aa Mon Sep 17 00:00:00 2001 From: pieterpalmers Date: Sun, 11 May 2008 23:15:48 +0000 Subject: fix failure handling on NT driver start git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1178 0c269be4-1314-0410-8aa9-9f06e86f4224 --- libjack/driver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libjack/driver.c') diff --git a/libjack/driver.c b/libjack/driver.c index a17bf17..eac1fa8 100644 --- a/libjack/driver.c +++ b/libjack/driver.c @@ -153,11 +153,13 @@ jack_driver_nt_start (jack_driver_nt_t * driver) driver->engine->control->real_time, jack_driver_nt_thread, driver)) != 0) { jack_error ("DRIVER NT: could not start driver thread!"); - driver->nt_stop (driver); return err; } - + if ((err = driver->nt_start (driver)) != 0) { + /* make the thread run and exit immediately */ + driver->nt_run = DRIVER_NT_EXIT; + pthread_mutex_unlock (&driver->nt_run_lock); jack_error ("DRIVER NT: could not start driver"); return err; } -- cgit v1.2.1