From 91c4047d93c9f156b0c67e07823576a74fd6aabb Mon Sep 17 00:00:00 2001 From: Vijaya Gopal Yarramneni Date: Fri, 22 Mar 2019 18:17:47 -0700 Subject: [PATCH] Fixing a bug where transaction controller is not recovering from a fault. --- Microsoft.Azure.Amqp/Amqp/Transaction/Controller.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Microsoft.Azure.Amqp/Amqp/Transaction/Controller.cs b/Microsoft.Azure.Amqp/Amqp/Transaction/Controller.cs index ff978357..5ece5cd8 100644 --- a/Microsoft.Azure.Amqp/Amqp/Transaction/Controller.cs +++ b/Microsoft.Azure.Amqp/Amqp/Transaction/Controller.cs @@ -107,6 +107,7 @@ static void OnLinkOpen(IAsyncResult asyncResult) try { thisPtr.controllerLink.EndOpen(asyncResult); + thisPtr.controllerLink.SafeAddClosed((sender, args) => { thisPtr.SafeClose(); }); } catch (Exception exception) when (!Fx.IsFatal(exception)) {