forked from Qortal/qortal
Fixed bug which prevented the DATA_FILE message ID from making it through to the reply queue.
This commit is contained in:
parent
f296ec46c8
commit
d0f9d478c2
@ -15,6 +15,12 @@ public class DataFileMessage extends Message {
|
|||||||
this.dataFile = dataFile;
|
this.dataFile = dataFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DataFileMessage(int id, DataFile dataFile) {
|
||||||
|
super(id, MessageType.DATA_FILE);
|
||||||
|
|
||||||
|
this.dataFile = dataFile;
|
||||||
|
}
|
||||||
|
|
||||||
public DataFile getDataFile() {
|
public DataFile getDataFile() {
|
||||||
return this.dataFile;
|
return this.dataFile;
|
||||||
}
|
}
|
||||||
@ -24,7 +30,7 @@ public class DataFileMessage extends Message {
|
|||||||
byteBuffer.get(bytes);
|
byteBuffer.get(bytes);
|
||||||
DataFile dataFile = new DataFile(bytes);
|
DataFile dataFile = new DataFile(bytes);
|
||||||
|
|
||||||
return new DataFileMessage(dataFile);
|
return new DataFileMessage(id, dataFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user