Don't start the broadcast listener if we're not starting an SSB server.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3674 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
07a0828626
commit
77ec1a0b2e
@ -1364,10 +1364,11 @@ void tf_task_activate(tf_task_t* task)
|
|||||||
|
|
||||||
task->_ssb = tf_ssb_create(task->_loop, task->_context, task->_db, task->_secrets_path);
|
task->_ssb = tf_ssb_create(task->_loop, task->_context, task->_db, task->_secrets_path);
|
||||||
tf_ssb_set_trace(task->_ssb, task->_trace);
|
tf_ssb_set_trace(task->_ssb, task->_trace);
|
||||||
tf_ssb_broadcast_listener_start(task->_ssb, false);
|
|
||||||
tf_ssb_register(context, task->_ssb);
|
tf_ssb_register(context, task->_ssb);
|
||||||
|
|
||||||
if (task->_ssb_port)
|
if (task->_ssb_port)
|
||||||
{
|
{
|
||||||
|
tf_ssb_broadcast_listener_start(task->_ssb, false);
|
||||||
tf_ssb_server_open(task->_ssb, task->_ssb_port);
|
tf_ssb_server_open(task->_ssb, task->_ssb_port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user