File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
sdk/src/server-api/sc/networking/clients Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import sc .protocol .ProtocolPacket ;
4
4
5
+ import java .io .Closeable ;
6
+
5
7
/** Client interface to send packages to the server. */
6
- public interface IClient {
8
+ public interface IClient extends Closeable {
7
9
/** Send a package. */
8
10
void send (ProtocolPacket packet );
9
11
}
Original file line number Diff line number Diff line change @@ -249,7 +249,9 @@ protected synchronized void stopReceiver() {
249
249
this .receiveThread .interrupt ();
250
250
}
251
251
252
- protected synchronized void close () {
252
+ /** Closes the client without notifying any listeners.
253
+ * Prefer {@link #stop()} to end communication properly. */
254
+ public synchronized void close () {
253
255
if (!isClosed ()) {
254
256
this .closed = true ;
255
257
You can’t perform that action at this time.
0 commit comments