Skip to content

Commit 6fbe5af

Browse files
author
Zachary Crockett
committed
Merge pull request #13 from spark/feature/publish-within-function
Fix to handle publish within function call #11
2 parents 71e2b5f + 7920efd commit 6fbe5af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/spark_protocol.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,8 @@ bool SparkProtocol::handle_received_message(void)
793793
int return_value = descriptor.call_function(function_key, function_arg);
794794

795795
// send return value
796+
*msg_to_send = 0;
797+
*(msg_to_send + 1) = 16;
796798
function_return(msg_to_send + 2, token, return_value);
797799
if (0 > blocking_send(msg_to_send, 18))
798800
{

0 commit comments

Comments
 (0)