mirror of
				https://gitlab.crans.org/nounous/ghostream.git
				synced 2025-11-04 07:42:10 +01:00 
			
		
		
		
	Don't fail tests if the telnet module is not loaded
This commit is contained in:
		@@ -122,7 +122,7 @@ func Serve(config *Options) {
 | 
			
		||||
 | 
			
		||||
// GetNumberConnectedSessions returns the numbers of clients that are viewing the stream through a telnet shell
 | 
			
		||||
func GetNumberConnectedSessions(streamID string) int {
 | 
			
		||||
	if !Cfg.Enabled {
 | 
			
		||||
	if Cfg == nil || !Cfg.Enabled {
 | 
			
		||||
		return 0
 | 
			
		||||
	}
 | 
			
		||||
	return clientCount[streamID]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user