summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 0b8a0b8ff3..29709e3cba 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -738,10 +738,12 @@ Route::passthru_silence (framepos_t start_frame, framepos_t end_frame, pframes_t
void
Route::set_listen (bool yn)
{
- if (yn) {
- _monitor_send->activate ();
- } else {
- _monitor_send->deactivate ();
+ if (_monitor_send) {
+ if (yn) {
+ _monitor_send->activate ();
+ } else {
+ _monitor_send->deactivate ();
+ }
}
}