An electrosurgical system includes an electrosurgical device adapted to direct energy to tissue, one or more temperature sensors associated with the electrosurgical device, a fluid-flow path leading to the electrosurgical device, and a flow-control device disposed in fluid communication with the fluid-flow path. The system also includes a processor unit communicatively-coupled to the one or more temperature sensors and communicatively-coupled to the flow-control device. The processor unit is configured to control the flow-control device based on determination of a desired fluid-flow rate using one or more electrical signals outputted from the one or more temperature sensors.