]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Reordering, to change prior to unlocking
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 19 Mar 2009 19:21:30 +0000 (19:21 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 19 Mar 2009 19:21:30 +0000 (19:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@183342 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index f97f8e29f6a0847f72e2024c489b4144cc923e95..d42029cc56fef01cbbf5f00e2c5030886302d727 100644 (file)
@@ -9591,8 +9591,8 @@ static void *pri_dchannel(void *vpri)
                                                        dahdi_queue_frame(pri->pvts[chanpos], &f, pri);
                                                }
                                                pri->pvts[chanpos]->proceeding = 1;
-                                               ast_mutex_unlock(&pri->pvts[chanpos]->lock);
                                                pri->pvts[chanpos]->dialing = 0;
+                                               ast_mutex_unlock(&pri->pvts[chanpos]->lock);
                                        }
                                }
                                break;