mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Call the shutdown function of the plugin before closing.
This commit is contained in:
parent
2fe557af62
commit
12764c6778
@ -106,6 +106,12 @@ int csync_vio_init(CSYNC *ctx, const char *module, const char *args) {
|
||||
|
||||
void csync_vio_shutdown(CSYNC *ctx) {
|
||||
if (ctx->module.handle != NULL) {
|
||||
/* shutdown the plugin */
|
||||
if (ctx->module.finish_fn != NULL) {
|
||||
(*ctx->module.finish_fn)(ctx->module.method);
|
||||
}
|
||||
|
||||
/* close the plugin */
|
||||
dlclose(ctx->module.handle);
|
||||
ctx->module.handle = NULL;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user