Skip to content

Commit d3ce789

Browse files
committed
Fixed ping initialization
1 parent ea45726 commit d3ce789

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ int main(int argc, char *argv[])
159159
}
160160
#endif
161161

162+
#ifndef WIN32
163+
ntop->initPing();
164+
#endif
165+
162166
if(prefs->daemonize_ntopng())
163167
ntop->daemonize();
164168

@@ -314,10 +318,6 @@ int main(int argc, char *argv[])
314318
exit(0);
315319
}
316320

317-
#ifndef WIN32
318-
ntop->initPing();
319-
#endif
320-
321321
#ifndef WIN32
322322
if(prefs->get_pid_path() != NULL) {
323323
FILE *fd;

0 commit comments

Comments
 (0)