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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user