summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwctdm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wctdm.c b/wctdm.c
index 075a8ac..f709005 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -1795,8 +1795,10 @@ static int wctdm_close(struct zt_chan *chan)
#else
module_put(THIS_MODULE);
#endif
- for (x=0;x<wc->cards;x++)
- wc->mod.fxs.idletxhookstate[x] = 1;
+ for (x=0;x<wc->cards;x++) {
+ if (wc->modtype[x] == MOD_TYPE_FXS)
+ wc->mod.fxs.idletxhookstate[x] = 1;
+ }
/* If we're dead, release us now */
if (!wc->usecount && wc->dead)
wctdm_release(wc);