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() {
|
||||
netDiscoverer.stopDiscovery();
|
||||
connectionListener.stopAccepting();
|
||||
// db.close();
|
||||
for (PeerUser user : activeUsers.values()) {
|
||||
user.disconnect();
|
||||
|
|
Loading…
Reference in a new issue