Skip to content

Commit d0ae614

Browse files
committed
nemo-dropbox.c: Increase request delay to 100ms.
We end up with no menu entries frequently with only 50ms, doubling it seemed to take care of the issue, without adding too much latency in the ui.
1 parent 081eee3 commit d0ae614

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nemo-dropbox/src/nemo-dropbox.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,10 +729,13 @@ nemo_dropbox_get_file_items(NemoMenuProvider *provider,
729729
/*
730730
* 4. We have to block until it's done because nemo expects a reply. But we will
731731
* only block for 50 ms for a reply.
732+
*
733+
* *** 5-3-2021 - Increase to 100ms max delay, it seems it can fail pretty
734+
* regularly at only 50.
732735
*/
733736

734737
g_get_current_time(&gtv);
735-
g_time_val_add(&gtv, 50000);
738+
g_time_val_add(&gtv, 100 * 1000);
736739

737740
GHashTable *context_options_response = g_async_queue_timed_pop(reply_queue, &gtv);
738741
g_async_queue_unref(reply_queue);

0 commit comments

Comments
 (0)