Skip to content

Commit f45d325

Browse files
committed
Set GMCP flag even when MSDP negotiated first.
1 parent 6ed64e9 commit f45d325

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Sources/SwiftMTH/TelnetSession.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,9 +679,13 @@ public final class TelnetSession {
679679
// MARK: - Handler: GMCP
680680

681681
private func processDoGmcp() {
682-
if msdpManager != nil { return }
683-
log("INFO MSDP OVER GMCP INITIALIZED")
684682
commFlags.insert(.gmcp)
683+
if msdpManager != nil {
684+
msdpManager?.usesGMCP = true
685+
log("INFO GMCP ENABLED (MSDP already active)")
686+
return
687+
}
688+
log("INFO MSDP OVER GMCP INITIALIZED")
685689
initializeMSDP()
686690
}
687691

0 commit comments

Comments
 (0)