TMXR: Allow Line based logging to be both disabled and enabled before attach
Previously attempts to disable logging for an unattached mux (or line) could crash the simulator.
This commit is contained in:
parent
ae6f3b97e4
commit
451b53daeb
1 changed files with 2 additions and 1 deletions
|
@ -4456,6 +4456,7 @@ if (lp->txlog) { /* logging? */
|
||||||
lp->txlog = NULL;
|
lp->txlog = NULL;
|
||||||
lp->txlogname = NULL;
|
lp->txlogname = NULL;
|
||||||
}
|
}
|
||||||
|
if (mp->uptr)
|
||||||
lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp);
|
lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp);
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue