}
#ifdef HAVE_MINGW
-# define setpriority(level) SetPriorityClass(GetCurrentProcess(), level);
+# define setpriority(level) SetPriorityClass(GetCurrentProcess(), level)
#else
# define NORMAL_PRIORITY_CLASS 0
# define BELOW_NORMAL_PRIORITY_CLASS 10
if(!setup_network())
goto end;
- /* Change process priority */
+ /* Initiate all outgoing connections. */
+
+ try_outgoing_connections();
+
+ /* Change process priority */
char *priority = 0;
if (!drop_privs())
goto end;
- /* Initiate all outgoing connections. */
-
- try_outgoing_connections();
-
/* Start main loop. It only exits when tinc is killed. */
status = main_loop();