Using new `addConnection` which aims to be thread safe.
This commit is contained in:
parent
60cd993472
commit
5c13fa3c77
|
@ -79,7 +79,7 @@ public class BesterListener : Thread
|
|||
besterConnection.start();
|
||||
|
||||
/* Add this client to the list of connected clients */
|
||||
server.clients ~= besterConnection;
|
||||
server.addConnection(besterConnection);
|
||||
}
|
||||
|
||||
/* Close the socket */
|
||||
|
|
|
@ -103,6 +103,7 @@ public final class BesterServer
|
|||
/**
|
||||
* Append the connection to the array
|
||||
*/
|
||||
clients ~= connection;
|
||||
|
||||
/**
|
||||
* Release the mutex so other listeners can now append
|
||||
|
|
Loading…
Reference in New Issue