Fix for ESET firewall

#717 Clear proxy button fix
This commit is contained in:
Jindra Petřík
2014-11-18 20:07:47 +01:00
parent 29da0b2763
commit 527d36c7e3
4 changed files with 8 additions and 5 deletions

View File

@@ -38,6 +38,7 @@ public class Server implements Runnable {
*/
public static boolean startServer(int port, List<Replacement> replacements, List<String> catchedContentTypes, CatchedListener catchedListener, ReplacedListener replacedListener) {
stopServer();
stopping = false;
try {
myServer = new Server(port, replacements, catchedContentTypes, catchedListener, replacedListener);
} catch (IOException ex) {
@@ -55,6 +56,7 @@ public class Server implements Runnable {
public static void stopServer() {
if (serverRunning) {
stopping = true;
serverRunning = false;
try {
myServer.server.close();