fixes
This commit is contained in:
parent
9bdf133d0f
commit
c49f947a9b
6 changed files with 123 additions and 21 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue