Commits

Anonymous committed 113383d

Check port availability before starting swank.

Comments (0)

Files changed (1)

src/org/lispdev/swank/BaseLocalLispLaunchDelegate.java

     {
       Log.abort("Port is outside of available range", null);
     }
+    if( !AvailablePortFinder.available(port) )
+    {
+      Log.abort("Port "+port+" is not available", null);
+    }
     final LocalLispImplementation implem =
       new LocalLispImplementation(exe, swankDir,
           config.getAttribute(ATTR_CMD_PARAMS, new ArrayList()),