move dbCaShutdown earlier

shutdown dbCa thread before free'ing records
This commit is contained in:
Michael Davidsaver
2015-08-18 09:07:18 -04:00
parent aa04941119
commit f99fbe1964

View File

@@ -693,7 +693,7 @@ int iocShutdown(void)
scanStop();
callbackStop();
}
dbCaShutdown();
dbCaShutdown(); /* must be before dbFreeRecord and dbChannelExit */
if (iocBuildMode==buildIsolated) {
/* free resources */
scanCleanup();
@@ -701,9 +701,6 @@ int iocShutdown(void)
iterateRecords(doFreeRecord, NULL);
dbLockCleanupRecords(pdbbase);
asShutdown();
}
dbCaShutdown(); /* must be before dbChannelExit */
if (iocBuildMode==buildIsolated) {
dbChannelExit();
dbProcessNotifyExit();
iocshFree();