Subject: | [Patch] setup_wheel should be called with call() |
setup_wheel is currently called with post, so it's possible to issue a
command that is processed before the wheel is actually setup, resulting
in $heap->{wheel}->put(...) crashing. Patch is attached.
Subject: | setup_wheel.patch |
--- lib/POE/Component/EasyDBI.pm (revision 37)
+++ lib/POE/Component/EasyDBI.pm (working copy)
@@ -618,7 +625,7 @@
$kernel->alias_set($heap->{alias}) if ($heap->{alias} ne '');
# Create the wheel
- $kernel->yield('setup_wheel');
+ $kernel->call( $_[SESSION] => 'setup_wheel' );
return;
}