mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
It makes more sense for new_keys() to be in new_net_crypto()
This commit is contained in:
parent
042d759847
commit
977aab7f2f
|
@ -1553,7 +1553,6 @@ Messenger *new_messenger(uint8_t ipv6enabled)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
new_keys(m->net_crypto);
|
|
||||||
m_set_statusmessage(m, (uint8_t *)"Online", sizeof("Online"));
|
m_set_statusmessage(m, (uint8_t *)"Online", sizeof("Online"));
|
||||||
|
|
||||||
friendreq_init(&(m->fr), m->net_crypto);
|
friendreq_init(&(m->fr), m->net_crypto);
|
||||||
|
|
|
@ -818,6 +818,7 @@ Net_Crypto *new_net_crypto(Networking_Core *net)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
new_keys(temp);
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user