8055767: Sjavac is leaking servers
Reviewed-by: alundblad, jfranck
This commit is contained in:
parent
9867d883ad
commit
e187fdb46d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user