mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Merge branch 'unregister_fd_flash' into integration
This commit is contained in:
		| @@ -510,10 +510,11 @@ void Application::unregister_socket_fd(int fd) { | ||||
|     // Only recalculate max_fd if we removed the current max | ||||
|     if (fd == this->max_fd_) { | ||||
|       this->max_fd_ = -1; | ||||
|       for (int sock_fd : this->socket_fds_) | ||||
|       for (int sock_fd : this->socket_fds_) { | ||||
|         if (sock_fd > this->max_fd_) | ||||
|           this->max_fd_ = sock_fd; | ||||
|       } | ||||
|     } | ||||
|     return; | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user