summaryrefslogtreecommitdiff
path: root/csharp/src
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src')
-rw-r--r--csharp/src/Glacier2/SessionHelper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/csharp/src/Glacier2/SessionHelper.cs b/csharp/src/Glacier2/SessionHelper.cs
index b55107fb629..b6e0e20c751 100644
--- a/csharp/src/Glacier2/SessionHelper.cs
+++ b/csharp/src/Glacier2/SessionHelper.cs
@@ -389,10 +389,10 @@ public class SessionHelper
if(_communicator.getDefaultRouter() == null)
{
+ Ice.RouterFinderPrx finder = null;
try
{
- Ice.RouterFinderPrx finder =
- Ice.RouterFinderPrxHelper.uncheckedCast(_communicator.stringToProxy(_finderStr));
+ finder = Ice.RouterFinderPrxHelper.uncheckedCast(_communicator.stringToProxy(_finderStr));
_communicator.setDefaultRouter(finder.getRouter());
}
catch(Ice.CommunicatorDestroyedException ex)