fix(sfm): a different UM serial at a held address is refused (409), not swapped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
aa79e996c5
commit
d393a149f8
2 files changed
+18
-3
No files matched your search
@@ -121,7 +121,11 @@ class DeviceAccess:
|
||||
with self._sessions_guard:
|
||||
session = self._sessions.get(address.key)
|
||||
if session is not None and session.serial != serial:
|
||||
session.hang_up()
|
||||
if session.is_open:
|
||||
raise WrongUnit(
|
||||
f"a Series-4 line to {session.serial} is held at {address.key}; "
|
||||
f"{serial} cannot be reached there -- POST /device/hangup first "
|
||||
"if the modem has moved")
|
||||
session = None
|
||||
if session is None:
|
||||
session = Series4Session(address, serial, self._s4_factory, clock=self._clock)
|
||||
|
||||
Reference in new issue
Block a user