Skip to content

Commit

Permalink
Server: Fix issue with PULL mode connection status
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinSRG committed Nov 23, 2024
1 parent b1bead9 commit 99c10c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ func (ch *ConnectionHandler) HandlePull(msg *WebsocketProtocolMessage) bool {
// Pull
go ch.PullFromHlsSource(source, ch.pullingInterruptChannel, maxInitialFragments)

// Switch mode
ch.streamId = streamId
ch.mode = CONNECTION_MODE_PULL

return true
}
}
Expand All @@ -452,6 +456,10 @@ func (ch *ConnectionHandler) HandlePull(msg *WebsocketProtocolMessage) bool {
// Pull
go ch.PullFromHlsRelay(relay, ch.pullingInterruptChannel, maxInitialFragments)

// Switch mode
ch.streamId = streamId
ch.mode = CONNECTION_MODE_PULL

return true
}
}
Expand Down

0 comments on commit 99c10c2

Please sign in to comment.