mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Only create one global logger instance.
This commit is contained in:
parent
55b4484305
commit
278406393c
|
@ -1012,8 +1012,8 @@ uint32_t tox_do_interval(Tox *tox)
|
|||
*/
|
||||
Tox *tox_new(Tox_Options *options)
|
||||
{
|
||||
logger_set_global(logger_new(LOGGER_OUTPUT_FILE, LOGGER_LEVEL, "toxcore"));
|
||||
|
||||
if (!logger_get_global())
|
||||
logger_set_global(logger_new(LOGGER_OUTPUT_FILE, LOGGER_LEVEL, "toxcore"));
|
||||
|
||||
Messenger_Options m_options = {0};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user