Browse Source

remove the circuits upon quit

pre-master-46
Holger Vogt 8 years ago
parent
commit
7e611e7b57
  1. 20
      src/frontend/misccoms.c

20
src/frontend/misccoms.c

@ -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…
Cancel
Save