TMXR: Avoid attempting to manage unit connect strings for never attached devices
This commit is contained in:
parent
fe005f7d36
commit
66a02b877b
1 changed files with 1 additions and 1 deletions
|
@ -2024,7 +2024,7 @@ if (lp->serport) { /* close current serial connection *
|
|||
lp->destination = NULL;
|
||||
}
|
||||
tmxr_set_line_loopback (lp, FALSE);
|
||||
if ((lp->mp->uptr) && ((lp->uptr == NULL) || (lp->uptr == lp->mp->uptr))) {
|
||||
if ((lp->mp) && (lp->mp->uptr) && ((lp->uptr == NULL) || (lp->uptr == lp->mp->uptr))) {
|
||||
/* Revise the unit's connect string to reflect the current attachments */
|
||||
lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp);
|
||||
/* No connections or listeners exist, then we're equivalent to being fully detached. We should reflect that */
|
||||
|
|
Loading…
Add table
Reference in a new issue