diff --git a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.2008.vcproj b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.2008.vcproj index 0f56db3d78..69ec83c06c 100644 --- a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.2008.vcproj +++ b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.2008.vcproj @@ -119,7 +119,7 @@ /> diff --git a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c index eeee969db2..b494b591a5 100644 --- a/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c +++ b/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c @@ -1586,7 +1586,7 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_erlang_event_runtime) /* cleanup epmd registration */ ei_unpublish(&ec); - close(epmdfd); + close_socket(&epmdfd); init_failed: close_socket(&listen_list.sockfd);