diff options
Diffstat (limited to 'src/gnunet_chat_handle.c')
-rw-r--r-- | src/gnunet_chat_handle.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c index 05c0054..80ade04 100644 --- a/src/gnunet_chat_handle.c +++ b/src/gnunet_chat_handle.c @@ -416,6 +416,8 @@ handle_create_account (struct GNUNET_CHAT_Handle *handle, return GNUNET_SYSERR; } + accounts->wait_for_completion = GNUNET_NO; + GNUNET_CONTAINER_DLL_insert_tail( handle->accounts_head, handle->accounts_tail, @@ -464,6 +466,8 @@ handle_delete_account (struct GNUNET_CHAT_Handle *handle, return GNUNET_SYSERR; } + accounts->wait_for_completion = GNUNET_YES; + GNUNET_CONTAINER_DLL_insert_tail( handle->accounts_head, handle->accounts_tail, @@ -483,6 +487,8 @@ handle_delete_account (struct GNUNET_CHAT_Handle *handle, accounts ); + accounts->wait_for_completion = GNUNET_YES; + return (accounts->op? GNUNET_OK : GNUNET_SYSERR); } |