stop tcp listening before app close
This commit is contained in:
parent
c13b589054
commit
ea311fbecb
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ public class UserList {
|
||||||
*/
|
*/
|
||||||
public void destroy() {
|
public void destroy() {
|
||||||
netDiscoverer.stopDiscovery();
|
netDiscoverer.stopDiscovery();
|
||||||
|
connectionListener.stopAccepting();
|
||||||
// db.close();
|
// db.close();
|
||||||
for (PeerUser user : activeUsers.values()) {
|
for (PeerUser user : activeUsers.values()) {
|
||||||
user.disconnect();
|
user.disconnect();
|
||||||
|
|
Loading…
Reference in a new issue