mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
fix windows running as a service (FSCORE-159)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9115 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1b044f432b
commit
1e969376b3
@ -179,6 +179,8 @@ void WINAPI service_main(DWORD numArgs, char **args)
|
||||
/* update the service status */
|
||||
SetServiceStatus(hStatus, &status);
|
||||
|
||||
switch_core_set_globals();
|
||||
|
||||
/* attempt to initialize freeswitch and load modules */
|
||||
if (switch_core_init_and_modload(flags, SWITCH_FALSE, &err) != SWITCH_STATUS_SUCCESS) {
|
||||
/* freeswitch did not start sucessfully */
|
||||
|
Loading…
x
Reference in New Issue
Block a user