Skip to content

Commit

Permalink
overall: synced some MiniScript fixes into tdme2
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdr committed Dec 13, 2023
1 parent b268fce commit 892b09f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/tdme/network/httpclient/HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void HTTPClient::execute() {
//
socket->shutdown();
} catch (Exception& exception) {
socket->shutdown();
if (socket != nullptr) socket->shutdown();
//
Console::println(string("HTTPClient::execute(): performed HTTP request: FAILED: ") + exception.what());
// rethrow
Expand Down
2 changes: 1 addition & 1 deletion src/tdme/network/httpclient/HTTPDownloadClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ void HTTPDownloadClient::start() {
downloadClient->finished = true;
downloadClient->progress = 1.0f;
} catch (Exception& exception) {
socket->shutdown();
if (socket != nullptr) socket->shutdown();
downloadClient->finished = true;
Console::println(string("HTTPDownloadClient::execute(): performed HTTP request: FAILED: ") + exception.what());
}
Expand Down
2 changes: 0 additions & 2 deletions src/tdme/os/network/SecureTCPSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include <openssl/rand.h>
#include <openssl/ocsp.h>
#include <openssl/bn.h>
#include <openssl/trace.h>
#include <openssl/async.h>
#ifndef OPENSSL_NO_CT
#include <openssl/ct.h>
#endif
Expand Down
1 change: 0 additions & 1 deletion src/tdme/os/network/SecureTCPSocket.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include <openssl/types.h>
#include <openssl/x509.h>

#include <string>
Expand Down

0 comments on commit 892b09f

Please sign in to comment.