fix(Http): use uninitialize_curl() in begin() method

This commit is contained in:
Tomasz Sowa 2022-12-23 04:23:38 +01:00
parent aa938f05ca
commit 14e32df8c9
1 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ namespace Winix
Http::Http()
{
curl = nullptr;
begin();
}
@ -55,7 +56,7 @@ Http::Http()
*/
Http & Http::begin()
{
curl = nullptr;
uninitialize_curl();
synchro = nullptr;
browser_name = "Winix";
conn_timeout = 30;