fix crash on shutdown (post-relay world)

This commit is contained in:
Eric House 2022-05-28 08:49:07 -07:00
parent 5101fb46cb
commit 8c335aace3

View file

@ -746,7 +746,7 @@ void
relaycon_cleanup( LaunchParams* params )
{
RelayConStorage* storage = (RelayConStorage*)params->relayConStorage;
if ( storage->params->useHTTP ) {
if ( !!storage && storage->params->useHTTP ) {
pthread_mutex_lock( &storage->relayMutex );
#ifdef DEBUG
int nRelayTasks = g_slist_length( storage->relayTaskList );