remove the circuits upon quit
This commit is contained in:
parent
d26d1b96ec
commit
7e611e7b57
|
|
@ -57,8 +57,14 @@ com_quit(wordlist *wl)
|
|||
return;
|
||||
|
||||
#ifndef SHARED_MODULE
|
||||
if (!ft_ngdebug)
|
||||
exit(exitcode);
|
||||
if (!ft_ngdebug && !ft_nutmeg) {
|
||||
/* Destroy CKT */
|
||||
struct circ *cc;
|
||||
for (cc = ft_circuits; cc; cc = cc->ci_next)
|
||||
if (SIMinfo.deleteCircuit)
|
||||
SIMinfo.deleteCircuit(cc->ci_ckt);
|
||||
}
|
||||
exit(exitcode);
|
||||
#endif
|
||||
|
||||
/* start to clean up the mess */
|
||||
|
|
@ -82,16 +88,6 @@ com_quit(wordlist *wl)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef EXPERIMENTAL_CODE
|
||||
/* Destroy CKT when quit. Add by Gong Ding, gdiso@ustc.edu */
|
||||
if (!ft_nutmeg) {
|
||||
struct circ *cc;
|
||||
for (cc = ft_circuits; cc; cc = cc->ci_next)
|
||||
if (SIMinfo.deleteCircuit)
|
||||
SIMinfo.deleteCircuit(cc->ci_ckt);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SHARED_MODULE
|
||||
/* Destroy CKT when quit. */
|
||||
if (!ft_nutmeg) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue