life is better without race condition
This commit is contained in:
parent
27059fd4cc
commit
db7245f90b
|
@ -26,7 +26,7 @@ public class PCanIoStream extends AbstractIoStream {
|
|||
static Logging log = getLogging(PCanIoStream.class);
|
||||
|
||||
public static final TPCANHandle CHANNEL = TPCANHandle.PCAN_USBBUS1;
|
||||
private final IncomingDataBuffer dataBuffer = createDataBuffer("[PCAN] ");
|
||||
private final IncomingDataBuffer dataBuffer;
|
||||
private final PCANBasic can;
|
||||
private final StatusConsumer statusListener;
|
||||
|
||||
|
@ -89,6 +89,7 @@ public class PCanIoStream extends AbstractIoStream {
|
|||
private PCanIoStream(PCANBasic can, StatusConsumer statusListener) {
|
||||
this.can = can;
|
||||
this.statusListener = statusListener;
|
||||
dataBuffer = createDataBuffer("[PCAN] ");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue