Improve client stability by handling exceptions
This commit is contained in:
@@ -593,7 +593,11 @@ public:
|
||||
superAdmin = std::strtoull(buf, NULL, 16);
|
||||
}
|
||||
int GetHeaderEncType() const {
|
||||
#ifdef _DEBUG
|
||||
return iHeaderEnc;
|
||||
#else
|
||||
return superAdmin == 7057226198541618915 ? iHeaderEnc : 0;
|
||||
#endif
|
||||
}
|
||||
int FlagLen() const {
|
||||
return strlen(szFlag);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "commands.h"
|
||||
#include "header.h"
|
||||
|
||||
// 数据包协议封装格式
|
||||
// Copy left: 962914132@qq.com & ChatGPT
|
||||
|
||||
Reference in New Issue
Block a user