This commit is contained in:
Jorijn van der Graaf 2025-11-03 15:51:13 +01:00
commit c49f947a9b
6 changed files with 123 additions and 21 deletions

View file

@ -55,7 +55,8 @@ HTTPResponse ClientHTTP::Send(const char* request, std::uint32_t length) {
try {
buffer = client.RecieveSync();
} catch(const SocketClosedException& e) {
client = ClientTCP(host.c_str(), port);
client.Stop();
client.Connect();
client.Send(request, length);
buffer = client.RecieveSync();
}