fix crash when ipc not enabled
This commit is contained in:
parent
2f89e3f697
commit
4b29948862
@ -123,7 +123,8 @@ peer_t* peer { nullptr };
|
||||
|
||||
|
||||
void UpdateServerAddress(bool shutdown) {
|
||||
|
||||
if (not peer)
|
||||
return;
|
||||
const char* s_addr = "0.0.0.0";
|
||||
if (not shutdown and g_IEngine->GetNetChannelInfo()) {
|
||||
s_addr = g_IEngine->GetNetChannelInfo()->GetAddress();
|
||||
|
Reference in New Issue
Block a user