提交 bfb4be9a authored 作者: Anthony Minessale's avatar Anthony Minessale

avoiding secondary deadlock

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@325 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 2c15f108
...@@ -719,7 +719,7 @@ zap_status_t zap_channel_open_any(uint32_t span_id, zap_direction_t direction, z ...@@ -719,7 +719,7 @@ zap_status_t zap_channel_open_any(uint32_t span_id, zap_direction_t direction, z
zap_set_flag(check, ZAP_CHANNEL_INUSE); zap_set_flag(check, ZAP_CHANNEL_INUSE);
zap_channel_open_chan(check); zap_channel_open_chan(check);
*zchan = check; *zchan = check;
return status; goto done;
} }
} }
...@@ -740,6 +740,7 @@ zap_status_t zap_channel_open_any(uint32_t span_id, zap_direction_t direction, z ...@@ -740,6 +740,7 @@ zap_status_t zap_channel_open_any(uint32_t span_id, zap_direction_t direction, z
} }
} }
done:
zap_mutex_unlock(globals.mutex); zap_mutex_unlock(globals.mutex);
return status; return status;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论