List:Commits« Previous MessageNext Message »
From:Iggy Galarza Date:February 3 2011 10:34pm
Subject:bzr commit into wex-installer-1.0 branch (iggy:299)
View as plain text  
#At file:///C:/src/bzr.mysql/wex/installer/ based on revid:reggie.burnett@stripped

  299 Iggy Galarza	2011-02-03
      Check for port availablity.

    modified:
      WexInstaller/Panels/ServerConfigPanel2.cs
=== modified file 'WexInstaller/Panels/ServerConfigPanel2.cs'
--- a/WexInstaller/Panels/ServerConfigPanel2.cs	2011-02-03 21:51:47 +0000
+++ b/WexInstaller/Panels/ServerConfigPanel2.cs	2011-02-03 22:34:39 +0000
@@ -104,6 +104,14 @@ namespace WexInstaller.Panels
             CheckPasswords();
             SetDefaultServiceName();
 
+
+            int currentPort = Int32.Parse(portNumber.Text.Trim(), CultureInfo.InvariantCulture);
+            while (!PortIsAvailable(currentPort))
+            {
+                currentPort += 1;
+            }
+            portNumber.Text = currentPort.ToString();
+
             base.Activate();
         }
 


Attachment: [text/bzr-bundle] bzr/iggy@mysql.com-20110203223439-2bjwybq1pz4epvgm.bundle
Thread
bzr commit into wex-installer-1.0 branch (iggy:299) Iggy Galarza3 Feb