fix use of connected when it should be mem_ptr

This commit is contained in:
Isaac Connor 2016-03-29 15:46:47 -04:00
parent 50f9241c14
commit 204a128ecc
1 changed files with 1 additions and 1 deletions

View File

@ -1132,7 +1132,7 @@ void Monitor::DumpZoneImage( const char *zone_string )
} }
Image *zone_image = NULL; Image *zone_image = NULL;
if ( ( (!staticConfig.SERVER_ID) || ( staticConfig.SERVER_ID == server_id ) ) && connected ) { if ( ( (!staticConfig.SERVER_ID) || ( staticConfig.SERVER_ID == server_id ) ) && mem_ptr ) {
Debug(3, "Trying to load from local zmc"); Debug(3, "Trying to load from local zmc");
int index = shared_data->last_write_index; int index = shared_data->last_write_index;
Snapshot *snap = &image_buffer[index]; Snapshot *snap = &image_buffer[index];