Skip to content

Commit a0f7588

Browse files
committed
Add initializeMSDPForRestore public method for copyover recovery.
1 parent 5a22147 commit a0f7588

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/SwiftMTH/TelnetSession.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,13 @@ public final class TelnetSession {
639639
log("INFO MSDP INITIALIZED")
640640
}
641641

642+
/// Initialize MSDP manager for copyover restore (no negotiation announcements).
643+
public func initializeMSDPForRestore(usesGMCP: Bool) {
644+
guard msdpManager == nil else { return }
645+
initializeMSDP()
646+
msdpManager?.usesGMCP = usesGMCP
647+
}
648+
642649
private func initializeMSDP() {
643650
msdpManager = MSDPManager(
644651
table: msdpTable,

0 commit comments

Comments
 (0)