mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-02 22:03:09 +02:00
Mark session as used when connection is closed to prevent from timing out too early.
This commit is contained in:
parent
80194c4e1d
commit
d437dbbc0e
|
@ -427,7 +427,12 @@ func (s *ProxyServer) proxyHandler(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
client.OnClosed = s.clientClosed
|
||||
client.OnClosed = func(c *signaling.Client) {
|
||||
if session := client.GetSession(); session != nil {
|
||||
session.MarkUsed()
|
||||
}
|
||||
s.clientClosed(c)
|
||||
}
|
||||
client.OnMessageReceived = func(c *signaling.Client, data []byte) {
|
||||
s.processMessage(client, data)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue