tasks/font_loader.js
function closeConnection(errMsg) {
		if (ftp) {
			ftp.raw.quit(function(err, res) {
				if (err) {
					grunt.log.error(err);
					done(false);
				}
				ftp.destroy();
				grunt.log.ok("FTP connection closed!");
				done();
			});
		} else if (errMsg) {
			grunt.log.warn(errMsg);
			done(false);
		} else {
			done();
		}
	}
function closeConnection(errMsg) {
		if (ftp) {
			ftp.raw.quit(function(err, res) {
				if (err) {
					grunt.log.error(err);
					done(false);
				}
				ftp.destroy();
				grunt.log.ok("FTP connection closed!");
				done();
			});
		} else if (errMsg) {
			grunt.log.warn(errMsg);
			done(false);
		} else {
			done();
		}
	}
function closeConnection ( errMsg ) { if ( ftp ) { ftp . raw . quit ( function ( err , res ) { if ( err ) { grunt . log . error ( err ) ; done ( false ) ; } ftp . destroy ( ) ; grunt . log . ok ( "FTP connection closed!" ) ; done ( ) ; } ) ; } else if ( errMsg ) { grunt . log . warn ( errMsg ) ; done ( false ) ; } else { done ( ) ; } }
Close the connection and end the asynchronous task
Close the connection and end the asynchronous task