Fix editor crash when mbedtls is disabled.
(cherry picked from commit 054f52364f
)
This commit is contained in:
parent
e94aab7936
commit
402a7e0094
|
@ -37,7 +37,10 @@ bool DTLSServer::available = false;
|
|||
|
||||
DTLSServer *DTLSServer::create() {
|
||||
|
||||
return _create();
|
||||
if (_create) {
|
||||
return _create();
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool DTLSServer::is_available() {
|
||||
|
|
|
@ -37,7 +37,10 @@ bool PacketPeerDTLS::available = false;
|
|||
|
||||
PacketPeerDTLS *PacketPeerDTLS::create() {
|
||||
|
||||
return _create();
|
||||
if (_create) {
|
||||
return _create();
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool PacketPeerDTLS::is_available() {
|
||||
|
|
Loading…
Reference in New Issue