Skip to content

Partial fix for issue #390. #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Proper fix for issue #390.
  • Loading branch information
vinci6k committed May 24, 2021
commit 8289e2dcfc01ff9f622f1b7ecb7415a64babf31d
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,7 @@ def _pre_send_user_message(args):
buffer = make_object(ProtobufMessage, args[3])
except RuntimeError:
# Patch for issue #390 - UserMessage was created by another plugin.
buffer = UserMessage(
_recipients, get_message_name(message_index)).buffer
buffer_ptr = get_object_pointer(buffer)
buffer_size = get_size(buffer)

orig_buffer_ptr = args[3]
orig_buffer_ptr.copy(buffer_ptr, buffer_size)
buffer_ptr.copy(orig_buffer_ptr, buffer_size)
buffer = ProtobufMessage.from_abstract_pointer(args[3])

protobuf_user_message_hooks.notify(_recipients, buffer)

Expand Down