summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/binding/RemoteCommunicatorI.cs
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-11-07 12:41:21 +0100
committerJose <jose@zeroc.com>2017-11-07 12:41:21 +0100
commit03ae468e37745c56343053d30f9343617c9d7be1 (patch)
tree556ece2b87a79c3add31e44b6c8bcaf85492ccd7 /csharp/test/Ice/binding/RemoteCommunicatorI.cs
parentFix JS Ice/binding failure (diff)
downloadice-03ae468e37745c56343053d30f9343617c9d7be1.tar.bz2
ice-03ae468e37745c56343053d30f9343617c9d7be1.tar.xz
ice-03ae468e37745c56343053d30f9343617c9d7be1.zip
C# build failure
Diffstat (limited to 'csharp/test/Ice/binding/RemoteCommunicatorI.cs')
-rw-r--r--csharp/test/Ice/binding/RemoteCommunicatorI.cs33
1 files changed, 18 insertions, 15 deletions
diff --git a/csharp/test/Ice/binding/RemoteCommunicatorI.cs b/csharp/test/Ice/binding/RemoteCommunicatorI.cs
index 0436be2a480..33aad660856 100644
--- a/csharp/test/Ice/binding/RemoteCommunicatorI.cs
+++ b/csharp/test/Ice/binding/RemoteCommunicatorI.cs
@@ -21,25 +21,28 @@ public class RemoteCommunicatorI : RemoteCommunicatorDisp_
createObjectAdapter(string name, string endpts, Ice.Current current)
{
int retry = 5;
- try
+ while(true)
{
- string endpoints = endpts;
- if(endpoints.IndexOf("-p") < 0)
+ try
{
- endpoints = _app.getTestEndpoint(_nextPort++, endpoints);
- }
+ string endpoints = endpts;
+ if(endpoints.IndexOf("-p") < 0)
+ {
+ endpoints = _app.getTestEndpoint(_nextPort++, endpoints);
+ }
- Ice.Communicator com = current.adapter.getCommunicator();
- com.getProperties().setProperty(name + ".ThreadPool.Size", "1");
- Ice.ObjectAdapter adapter = com.createObjectAdapterWithEndpoints(name, endpoints);
- return RemoteObjectAdapterPrxHelper.uncheckedCast(
- current.adapter.addWithUUID(new RemoteObjectAdapterI(adapter)));
- }
- catch(Ice.SocketException)
- {
- if(--retry == 0)
+ Ice.Communicator com = current.adapter.getCommunicator();
+ com.getProperties().setProperty(name + ".ThreadPool.Size", "1");
+ Ice.ObjectAdapter adapter = com.createObjectAdapterWithEndpoints(name, endpoints);
+ return RemoteObjectAdapterPrxHelper.uncheckedCast(
+ current.adapter.addWithUUID(new RemoteObjectAdapterI(adapter)));
+ }
+ catch(Ice.SocketException)
{
- throw;
+ if(--retry == 0)
+ {
+ throw;
+ }
}
}
}