mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix a random SSL crash I saw once.
I don't know why this happened, I was debugging another issue. This should take care of it though.
This commit is contained in:
parent
197b65f32a
commit
64626f682e
1 changed files with 6 additions and 0 deletions
|
@ -346,6 +346,12 @@ Error HTTPClient::poll() {
|
||||||
} else {
|
} else {
|
||||||
// We are already handshaking, which means we can use your already active SSL connection
|
// We are already handshaking, which means we can use your already active SSL connection
|
||||||
ssl = static_cast<Ref<StreamPeerSSL> >(connection);
|
ssl = static_cast<Ref<StreamPeerSSL> >(connection);
|
||||||
|
if (ssl.is_null()) {
|
||||||
|
close();
|
||||||
|
status = STATUS_SSL_HANDSHAKE_ERROR;
|
||||||
|
return ERR_CANT_CONNECT;
|
||||||
|
}
|
||||||
|
|
||||||
ssl->poll(); // Try to finish the handshake
|
ssl->poll(); // Try to finish the handshake
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue