mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Update PackageWrapper.
This commit is contained in:
@@ -39,7 +39,7 @@ int PackageWrapper::encode(struct iovec vectors[], int max)
|
||||
}
|
||||
|
||||
cnt += ret;
|
||||
this->message = this->next(this->message);
|
||||
this->message = this->next_out(this->message);
|
||||
if (!this->message)
|
||||
return cnt;
|
||||
|
||||
@@ -57,7 +57,7 @@ int PackageWrapper::append(const void *buf, size_t *size)
|
||||
|
||||
if (ret > 0)
|
||||
{
|
||||
this->message = this->next(this->message);
|
||||
this->message = this->next_in(this->message);
|
||||
if (this->message)
|
||||
{
|
||||
this->renew();
|
||||
|
||||
Reference in New Issue
Block a user