Trying to fix blob transfers.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3625 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-01-02 22:48:33 +00:00
parent dd489de252
commit 01ff073af0
4 changed files with 13 additions and 4 deletions

View File

@ -116,6 +116,8 @@ static void _tf_ssb_test_ssb()
tf_ssb_append_message(ssb0, message);
JS_FreeValue(context, message);
assert(tf_ssb_blob_get(ssb0, blob_id, NULL, NULL));
assert(!tf_ssb_blob_get(ssb1, blob_id, NULL, NULL));
tf_ssb_server_open(ssb0, 12347);
uint8_t id0bin[k_id_bin_len];
@ -132,9 +134,11 @@ static void _tf_ssb_test_ssb()
uv_run(&loop, UV_RUN_ONCE);
}
printf("waiting for blob\n");
while (!tf_ssb_blob_get(ssb1, blob_id, NULL, NULL)) {
uv_run(&loop, UV_RUN_ONCE);
}
printf("done\n");
tf_ssb_send_close(ssb1);