diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-02-26 04:37:32 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-02-26 04:37:32 +0000 |
commit | 54f18f26d4731ebda625776f8850ea8ff4dcc79e (patch) | |
tree | fb8472023d9690e53af35b23b7bf052f11278ef1 /libs/ardour/session_butler.cc | |
parent | 1e352b699edad2b08f79206af1d2e462a19b44ef (diff) |
fix for #1503, crash on new session in write-protected dir
git-svn-id: svn://localhost/ardour2/trunk@1510 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_butler.cc')
-rw-r--r-- | libs/ardour/session_butler.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/session_butler.cc b/libs/ardour/session_butler.cc index 6c3fdea7e6..16c8d9cffa 100644 --- a/libs/ardour/session_butler.cc +++ b/libs/ardour/session_butler.cc @@ -103,10 +103,12 @@ Session::start_butler_thread () void Session::terminate_butler_thread () { - void* status; - char c = ButlerRequest::Quit; - ::write (butler_request_pipe[1], &c, 1); - pthread_join (butler_thread, &status); + if (butler_thread) { + void* status; + char c = ButlerRequest::Quit; + ::write (butler_request_pipe[1], &c, 1); + pthread_join (butler_thread, &status); + } } void |