8055767: Sjavac is leaking servers

Reviewed-by: alundblad, jfranck
This commit is contained in:
Erik Joelsson 2014-08-22 12:25:01 +02:00
parent 9867d883ad
commit e187fdb46d

View File

@ -310,7 +310,7 @@ public class SjavacServer implements Terminable {
@Override
public void shutdown(String quitMsg) {
if (!keepAcceptingRequests.compareAndSet(false, true)) {
if (!keepAcceptingRequests.compareAndSet(true, false)) {
// Already stopped, no need to shut down again
return;
}