]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move rwunlock where it makes sense
authorMathieu Rene <mrene@avgs.ca>
Thu, 23 Apr 2009 05:00:47 +0000 (05:00 +0000)
committerMathieu Rene <mrene@avgs.ca>
Thu, 23 Apr 2009 05:00:47 +0000 (05:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13129 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index d8397c3e8afc018357264ed0b77c64d8f219ef70..e8e7f38133ee2100d4de5257717767036be11186 100644 (file)
@@ -2838,8 +2838,8 @@ void *SWITCH_THREAD_FUNC media_on_hold_thread_run(switch_thread_t *thread, void
                                }
 
                                sofia_glue_toggle_hold(tech_pvt, 1);
-                               switch_core_session_rwunlock(other_session);
                        }
+                       switch_core_session_rwunlock(other_session);
                }
 
                switch_core_session_rwunlock(session);