Skip to content

Commit e86eac3

Browse files
committed
fix compilation errors
1 parent 7c3001a commit e86eac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swoole_server.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ class Server {
858858
if (iter == worker_buffers.end()) {
859859
if (info->flags & SW_EVENT_DATA_BEGIN) {
860860
auto buffer = make_string(info->len, worker_buffer_allocator);
861-
worker_buffers.emplace(info->msg_id, buffer);
861+
worker_buffers.emplace(info->msg_id, std::shared_ptr<String>(buffer));
862862
return buffer;
863863
}
864864
return nullptr;

0 commit comments

Comments
 (0)