@@ -385,9 +385,7 @@ SWITCH_STANDARD_API(managedrun_api_function)
} else {
stream->write_function(stream, "-ERR ExecuteBackground returned false (unknown module or exception?).\n");
}
-#ifndef _MANAGED
- mono_thread_detach(mono_thread_current());
-#endif
+
return SWITCH_STATUS_SUCCESS;
}
@@ -403,9 +401,7 @@ SWITCH_STANDARD_API(managed_api_function)
if (!(executeDelegate(cmd, stream, stream->param_event))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Execute failed for %s (unknown module or exception).\n", cmd);
}
-#ifndef _MANAGED
- mono_thread_detach(mono_thread_current());
-#endif
+
return SWITCH_STATUS_SUCCESS;
}
@@ -421,9 +417,7 @@ SWITCH_STANDARD_APP(managed_app_function)
if (!(runDelegate(data, session))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Application run failed for %s (unknown module or exception).\n", data);
}
-#ifndef _MANAGED
- mono_thread_detach(mono_thread_current());
-#endif
+
}
SWITCH_STANDARD_API(managedreload_api_function)
@@ -438,9 +432,7 @@ SWITCH_STANDARD_API(managedreload_api_function)
if (!(reloadDelegate(cmd))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Execute failed for %s (unknown module or exception).\n", cmd);
}
-#ifndef _MANAGED
- mono_thread_detach(mono_thread_current());
-#endif
+
return SWITCH_STATUS_SUCCESS;
}
-----