mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-7148 Built In HTTP Preview Server Needed (IntelliJ IDEA)
This commit is contained in:
@@ -11,6 +11,8 @@ public abstract class CustomPortServerManager {
|
||||
|
||||
public interface CustomPortService {
|
||||
boolean rebind();
|
||||
|
||||
boolean isBound();
|
||||
}
|
||||
|
||||
public abstract int getPort();
|
||||
|
||||
@@ -37,6 +37,11 @@ public class SubServer implements CustomPortServerManager.CustomPortService, Dis
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBound() {
|
||||
return !openChannels.isEmpty();
|
||||
}
|
||||
|
||||
private void stop() {
|
||||
// todo should we call releaseExternalResources? We use only 1 boss&worker thread
|
||||
openChannels.close().awaitUninterruptibly();
|
||||
|
||||
Reference in New Issue
Block a user