resolve deadlock, fix component.rs

This commit is contained in:
lumi 2017-05-27 18:41:54 +02:00
commit 1550c52552
5 changed files with 55 additions and 50 deletions

View file

@ -9,7 +9,7 @@ macro_rules! impl_plugin {
#[allow(unused_variables)]
impl $crate::plugin::PluginInit for $plugin {
fn init( dispatcher: &mut $crate::event::Dispatcher
fn init( dispatcher: &$crate::event::Dispatcher
, me: ::std::sync::Arc<Box<$crate::plugin::Plugin>>) {
$(
let new_arc = me.clone();