workaround for segfault in std.net.curl.Curl.shutdown() on exit

This commit is contained in:
skilion 2016-02-24 17:07:59 +01:00
parent 9a9137ea16
commit 89452985ec
2 changed files with 4 additions and 1 deletions

View file

@ -143,6 +143,9 @@ void main(string[] args)
}
}
}
// workaround for segfault in std.net.curl.Curl.shutdown() on exit
onedrive.http.shutdown();
}
// try to synchronize the folder three times

View file

@ -35,7 +35,7 @@ final class OneDriveApi
private string clientId, clientSecret;
private string refreshToken, accessToken;
private SysTime accessTokenExpiration;
private HTTP http;
/* private */ HTTP http;
void delegate(string) onRefreshToken; // called when a new refresh_token is received