提交 bd6f7e73 authored 作者: Mathieu Parent's avatar Mathieu Parent

perl-Skinny: don't launch thread if socket can't be created

上级 74e14f0d
......@@ -31,8 +31,10 @@ sub new {
$kept_self = shift->SUPER::new(@_);
$messages_send_queue = Thread::Queue->new();
$messages_receive_queue = Thread::Queue->new();
if ($kept_self) {
threads->create(\&send_messages_thread_func);
threads->create(\&receive_messages_thread_func);
}
return $kept_self;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论