From: Rafael Kitover Date: Tue, 1 Mar 2011 03:18:11 +0000 (-0500) Subject: detach EasyDBI child session X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=de50626e3d9ffe0625bf9912f5ea944e0895e430;p=dbsrgits%2FDBIx-Class-Historic.git detach EasyDBI child session --- diff --git a/lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm b/lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm index 895fb56..eb711c7 100644 --- a/lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm +++ b/lib/DBIx/Class/Storage/DBI/POE/EasyDBI.pm @@ -101,6 +101,8 @@ sub _init { options => $opts ); + $poe_kernel->detach_child($easydbi->ID); + $self->_easydbi($easydbi); } diff --git a/t/storage/poe_easydbi.t b/t/storage/poe_easydbi.t index f997cd8..4215252 100644 --- a/t/storage/poe_easydbi.t +++ b/t/storage/poe_easydbi.t @@ -49,11 +49,6 @@ POE::Session->create( isnt $seq, '0,1,2,3,4,5', 'records were not inserted synchronously'; $_[HEAP]{creates_done_ran} = 1; - - $_[KERNEL]->yield('cleanup'); - }, - cleanup => sub { - delete $_[HEAP]{schema}; # FIXME this should not be necessary }, }, );