Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Added a comment about order of dropping plugin and library (#34160)
Browse files Browse the repository at this point in the history
Added a comment about order of dropping plugin and library
  • Loading branch information
lijunwangs authored Nov 27, 2023
1 parent a22487f commit 8445246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geyser-plugin-manager/src/geyser_plugin_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ impl GeyserPluginManager {
let mut current_plugin = self.plugins.remove(idx);
let name = current_plugin.name().to_string();
current_plugin.on_unload();
// The plugin must be dropped before the library to avoid a crash.
drop(current_plugin);
drop(current_lib);
info!("Unloaded plugin {name} at idx {idx}");
Expand Down

0 comments on commit 8445246

Please sign in to comment.