mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +00:00
only set console when we have a console
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6535 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
8a01509d13
commit
18ca278d9b
4 files changed
+13
-9
No files matched your search
+2
-2
@@ -180,7 +180,7 @@ void WINAPI service_main(DWORD numArgs, char **args)
|
||||
set_high_priority();
|
||||
|
||||
/* attempt to initialize freeswitch and load modules */
|
||||
if (switch_core_init_and_modload(flags, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_core_init_and_modload(flags, SWITCH_FALSE, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
/* freeswitch did not start sucessfully */
|
||||
status.dwCurrentState = SERVICE_STOPPED;
|
||||
} else {
|
||||
@@ -416,7 +416,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
#endif
|
||||
|
||||
if (switch_core_init_and_modload(flags, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_core_init_and_modload(flags, nc ? SWITCH_FALSE : SWITCH_TRUE, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
fprintf(stderr, "Cannot Initilize [%s]\n", err);
|
||||
return 255;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user