Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created January 4, 2016 13:38
Show Gist options
  • Save rolfbjarne/e4333aa092d798d3eb17 to your computer and use it in GitHub Desktop.
Save rolfbjarne/e4333aa092d798d3eb17 to your computer and use it in GitHub Desktop.
diff --git a/tools/mtouch/devcontroller.cs b/tools/mtouch/devcontroller.cs
index 900994c..e848d41 100644
--- a/tools/mtouch/devcontroller.cs
+++ b/tools/mtouch/devcontroller.cs
@@ -415,6 +415,8 @@ namespace MonoTouch
DeviceDiscovery.EnumerateDevices (MTouch.Timeout, (dev) =>
{
+ dev.ValidatePairing ();
+ dev.StartSession ();
switch (format) {
case OutputFormat.Xml:
writer.WriteStartElement ("Device");
@@ -437,6 +439,7 @@ namespace MonoTouch
}
break;
}
+ dev.StopSession ();
});
if (format == OutputFormat.Xml) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment