diff options
author | pieterpalmers <pieterpalmers@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2008-05-11 23:15:48 +0000 |
---|---|---|
committer | pieterpalmers <pieterpalmers@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2008-05-11 23:15:48 +0000 |
commit | 2cf4a791ee3edbecd7204f6273f5c961a0d092aa (patch) | |
tree | bcfadbada4a62426ffe8459428912166492e8f38 /libjack | |
parent | 91c1333742da56dba42375f43e3166c3886468ed (diff) | |
download | jack1-2cf4a791ee3edbecd7204f6273f5c961a0d092aa.tar.gz |
fix failure handling on NT driver start
git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1178 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'libjack')
-rw-r--r-- | libjack/driver.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |