fix futures that need to be failed not being failed when a connection is closed
[scpubgit/Object-Remote.git] / lib / Object / Remote / Connection.pm
index 4120395..66d4c2e 100644 (file)
@@ -121,6 +121,7 @@ sub _fail_outstanding {
   foreach(keys(%$outstanding)) {
     log_trace { "Failing future for $_" };
     my $future = $outstanding->{$_};
+    $future->fail("$error\n");
   }
 
   %$outstanding = ();