mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-05-12 23:30:25 -05:00
Reset xmon buffer before packing stuff in
This commit is contained in:
@@ -82,6 +82,7 @@ void Xmon::packLogon(XmonBuf& buf) {
|
||||
}
|
||||
|
||||
void Xmon::packUpdate(XmonBuf& buf) {
|
||||
buf.reset();
|
||||
// Message type int32 0x1
|
||||
// (unused) int32 must be 0
|
||||
// Heap size int64 (deprecated)
|
||||
@@ -97,6 +98,7 @@ void Xmon::packUpdate(XmonBuf& buf) {
|
||||
}
|
||||
|
||||
void Xmon::packRequest(XmonBuf& buf, const XmonRequest& req) {
|
||||
buf.reset();
|
||||
buf.packScalar(req.msgType);
|
||||
buf.packScalar(req.alertId);
|
||||
if (req.msgType == XmonRequestType::CREATE || req.msgType == XmonRequestType::UPDATE) {
|
||||
|
||||
Reference in New Issue
Block a user