修正压缩算法解析出错的问题
This commit is contained in:
@@ -51,7 +51,7 @@ namespace Transmission {
|
||||
if (!dataPackets.ParseFromArray(buff.get(), this->packSize))
|
||||
throw PrepareDataException("反序列化出错");
|
||||
this->packSize = -1;
|
||||
switch (dataPackets.type()) {
|
||||
switch (dataPackets.algorithm()) {
|
||||
//无压缩
|
||||
case CompressAlgorithm::NOT: {
|
||||
auto pack = copyMem(dataPackets.data());
|
||||
|
||||
Reference in New Issue
Block a user