mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Set uid in constructor
This commit is contained in:
parent
75af3adb81
commit
82c96d4be7
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class Connection implements MessageListener {
|
|||
// private final MessageListener messageListener;
|
||||
private final ConnectionListener connectionListener;
|
||||
private final String portInfo;
|
||||
private final String uid = UUID.randomUUID().toString();
|
||||
private final String uid;
|
||||
private final ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor();
|
||||
// holder of state shared between InputHandler and Connection
|
||||
private final SharedModel sharedModel;
|
||||
|
@ -108,6 +108,7 @@ public class Connection implements MessageListener {
|
|||
this.socket = socket;
|
||||
//this.messageListener = messageListener;
|
||||
this.connectionListener = connectionListener;
|
||||
uid = UUID.randomUUID().toString();
|
||||
statistic = new Statistic();
|
||||
|
||||
addMessageListener(messageListener);
|
||||
|
|
Loading…
Add table
Reference in a new issue