mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-30 00:49:44 +00:00
fix(server): Replace context-aware select with sleep in run loop
This commit is contained in:
@@ -264,11 +264,7 @@ func (s *Server) run(ctx context.Context) error {
|
||||
}(sid)
|
||||
}
|
||||
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return nil
|
||||
case <-time.After(1 * time.Millisecond):
|
||||
}
|
||||
time.Sleep(1 * time.Millisecond)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user