Commit d53b2c10 authored by koennecke's avatar koennecke
Browse files

Fixed a bug in epicsadpater where a SCDeleteConnection called from EpicsWriteFunc called Log()

. This the was called from a thread which did not have a connection to the MongoDB. This caused a core dump.
parent 324d9f4b
......@@ -382,7 +382,9 @@ static void EpicsWriteFunc(void *param)
goto cleanup;
cleanup:
SCDeleteConnection(wp->pCon);
if(wp->pCon != NULL){
SCDeleteConnection(wp->pCon);
}
ReleaseHdbValue(&wp->v);
free(wp);
free(pv);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment