Advertisement
Guest User

Untitled

a guest
Aug 20th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. // Declared a new function in NetworkListenThread
  2.  public void closeConnections()
  3.  {
  4.      connections.clear();
  5.  }
  6.  
  7. // Overridden it in IntegratedServerListenThread
  8. @Override
  9.  public void closeConnections()
  10.  {
  11.      netMemoryConnection.closeConnections();
  12.      super.closeConnections();
  13.  }
  14.  
  15. // Then added this on the bottom of stopServer in MinecraftServer
  16.  if (this.getNetworkThread() != null)
  17.  {
  18.      this.getNetworkThread().closeConnections();
  19.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement