public synchronized boolean stopServer ( ) { if ( ! isProxyRunning ) { return false ; } isProxyRunning = false ; HttpUtil . closeServerSocket ( proxySocket ) ; try { thread . join ( ) ; //(PORT_TIME_OUT); } catch ( Exception e ) { } proxySocket = null ; return true ; }
Stops the proxy server .