Browse Source

stop tcp listening before app close

Arnaud Vergnet 3 years ago
parent
commit
ea311fbecb
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/main/java/fr/insa/clavardator/users/UserList.java

+ 1
- 0
src/main/java/fr/insa/clavardator/users/UserList.java View File

@@ -184,6 +184,7 @@ public class UserList {
184 184
 	 */
185 185
 	public void destroy() {
186 186
 		netDiscoverer.stopDiscovery();
187
+		connectionListener.stopAccepting();
187 188
 //		db.close();
188 189
 		for (PeerUser user : activeUsers.values()) {
189 190
 			user.disconnect();

Loading…
Cancel
Save