Update crates/nu-plugin-engine/src/persistent.rs
Thanks Ian! Co-authored-by: Ian Manske <ian.manske@pm.me>
This commit is contained in:
parent
acef856916
commit
c48b26be50
|
@ -312,7 +312,7 @@ impl RegisteredPlugin for PersistentPlugin {
|
||||||
// RAII guard that will be stored on the plugin.
|
// RAII guard that will be stored on the plugin.
|
||||||
let plugin = Arc::downgrade(&self);
|
let plugin = Arc::downgrade(&self);
|
||||||
handlers.register(Box::new(move || {
|
handlers.register(Box::new(move || {
|
||||||
// write a Ctrl-C packet through the PluginInterface is the plugin is alive and
|
// write a Ctrl-C packet through the PluginInterface if the plugin is alive and
|
||||||
// running
|
// running
|
||||||
if let Some(plugin) = plugin.upgrade() {
|
if let Some(plugin) = plugin.upgrade() {
|
||||||
if let Ok(mutable) = plugin.mutable.lock() {
|
if let Ok(mutable) = plugin.mutable.lock() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user