Patch to stop HTTPMUSocket

2006-11-25
2013-05-02
  • Francesco Furfari

    Hi Satoshi,
    here a patch to stop properly the HTTPMUSocket thread.

    public boolean close()
    {
    if (ssdpMultiSock == null)
                return true;
               
            try {
                ssdpMultiSock.leaveGroup(ssdpMultiGroup, ssdpMultiIf);
                ssdpMultiSock.close();
                ssdpMultiSock = null;
            }
            catch (Exception e) {
                //Debug.warning(e);
                return false;
            }
           
            return true;
        }

     
    • Francesco Furfari

      I pressed the post button inadvertely :-)

      I added a line to close explicitly ssdpMultiSock otherwise it can stay blocked in a receive operation.

      ciao,
      francesco

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks