summaryrefslogtreecommitdiffstats
path: root/src/nwk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nwk.c')
-rw-r--r--src/nwk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nwk.c b/src/nwk.c
index 0dcb3b7..e003a6f 100644
--- a/src/nwk.c
+++ b/src/nwk.c
@@ -343,7 +343,8 @@ static void dect_pt_track_audio(struct dect_handle *dh,
break;
/* fall through */
case DECT_CC_CONNECT:
- if (pt->ah == NULL)
+ if (dumpopts & DECTMON_DUMP_AUDIO &&
+ pt->ah == NULL)
pt->ah = dect_audio_open();
break;
case DECT_CC_RELEASE: