Add a weaken() cycle forgotten in d63c9e64
authorPeter Rabbitson <ribasushi@cpan.org>
Thu, 14 Apr 2016 07:19:15 +0000 (09:19 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Thu, 14 Apr 2016 07:21:50 +0000 (09:21 +0200)
commit29211e0358e2a7dbd69f68c1e10879c05fd8cdcc
tree2e3f1856120cc01fdf1502a15b532ba57af55069
parentef25a42942e8454e0285a9f42a567327fbd96496
Add a weaken() cycle forgotten in d63c9e64

The reason this has not been a problem is because thread spawn in DESTROY is
practically unheard of. Nevertheless if one throws the following in, the
problem becomes apparent: ( not committing this test, because... just no. )

--- a/t/storage/txn_scope_guard.t
+++ b/t/storage/txn_scope_guard.t
@@ -247,5 +247,7 @@ require DBICTest::AntiPattern::NullObject;
   my @arg_capture;
   {
+    use threads;
     local $SIG{__WARN__} = sub {
+      threads->new(sub { sleep 1})->join;
       package DB;
lib/DBIx/Class/_Util.pm