Hi all, I add the operation of closing the socket, so method is changed like this:
public void stopService(){ try{ if (isRunning()) { hl7server.stop(); } if(ss != null){ ss.close(); } } catch (IOException ioex) { ioex.printStackTrace(); } } It can refuse next connection because the socket has been closed. ----- Just Do It ! -- View this message in context: http://www.nabble.com/How-can-I-stop-HL7Server---I-start-it-in-a-new-thread%2Cbut-I-can-not-stop-it.-tp24365555p24386962.html Sent from the hl7api-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel