diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 2fd618ee615fc65f81433ad1b2cb8179274ba674
parent 239c0bce3fd14b8338bff028c0b981ad946aedf8
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Thu, 15 Jul 2021 20:25:54 +0200

show progress after oauth code

https://github.com/in0rdr/diary/issues/75

Diffstat:
Msrc/caldav.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/caldav.c b/src/caldav.c @@ -620,7 +620,6 @@ int caldav_sync(struct tm* date, size_t dir_size, bool confirm) { pthread_t progress_tid; - pthread_create(&progress_tid, NULL, show_progress, (void*)header); // fetch existing API tokens char* tokfile = read_tokenfile(); @@ -643,6 +642,8 @@ int caldav_sync(struct tm* date, get_access_token(code, challenge, false); } + pthread_create(&progress_tid, NULL, show_progress, (void*)header); + char* principal_postfields = "<d:propfind xmlns:d='DAV:' xmlns:cs='http://calendarserver.org/ns/'>" "<d:prop><d:current-user-principal/></d:prop>" "</d:propfind>";