summaryrefslogtreecommitdiff
path: root/channels/sig_analog.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/sig_analog.c')
-rw-r--r--channels/sig_analog.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/channels/sig_analog.c b/channels/sig_analog.c
index 92eb19144..5fcb485ee 100644
--- a/channels/sig_analog.c
+++ b/channels/sig_analog.c
@@ -2010,10 +2010,13 @@ static void *__analog_ss_thread(void *data)
}
if ((p->sig == ANALOG_SIG_FEATDMF) || (p->sig == ANALOG_SIG_FEATDMF_TA)) {
analog_wink(p, idx);
- /* some switches require a minimum guard time between
- the last FGD wink and something that answers
- immediately. This ensures it */
- if (ast_safe_sleep(chan,100)) {
+ /*
+ * Some switches require a minimum guard time between the last
+ * FGD wink and something that answers immediately. This
+ * ensures it.
+ */
+ if (ast_safe_sleep(chan, 100)) {
+ ast_hangup(chan);
goto quit;
}
}