diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-11-21 17:47:35 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-11-21 17:49:06 +0100 |
commit | a11945b449ae38efd6f79541c573c0028687c234 (patch) | |
tree | b68a6c1b3a97b6e95009b5ec7810e891bb209a65 /csharp/test/xamarin/controller.iOS/AppDelegate.cs | |
parent | Fixed Android Bluetooth acceptor race condition, fixes #181 (diff) | |
download | ice-a11945b449ae38efd6f79541c573c0028687c234.tar.bz2 ice-a11945b449ae38efd6f79541c573c0028687c234.tar.xz ice-a11945b449ae38efd6f79541c573c0028687c234.zip |
Android and Xamarin test controller fixes and improvements
Diffstat (limited to 'csharp/test/xamarin/controller.iOS/AppDelegate.cs')
-rw-r--r-- | csharp/test/xamarin/controller.iOS/AppDelegate.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/csharp/test/xamarin/controller.iOS/AppDelegate.cs b/csharp/test/xamarin/controller.iOS/AppDelegate.cs index 1f4728470ab..2b79fae00b1 100644 --- a/csharp/test/xamarin/controller.iOS/AppDelegate.cs +++ b/csharp/test/xamarin/controller.iOS/AppDelegate.cs @@ -48,17 +48,12 @@ namespace controller.iOS public bool isEmulator() { - return true; + return ObjCRuntime.Runtime.Arch == ObjCRuntime.Arch.SIMULATOR; } public string processControllerRegistryHost() { - return "127.0.0.1"; - } - - public bool registerProcessController() - { - return true; + return isEmulator() ? "127.0.0.1" : ""; // With an empty host, the controller will use IceDiscovery. } } } |