rem: if ((bytes = tcp_recv(download->con, buf, sizeof(buf))) <= 0) opn_download_free(download);
add: OPN->source_status(OPN, download->chunk->source, SOURCE_ACTIVE, "Active");
context: static void on_download_read_data(int fd, input_id input, void *udata){	OpnDownload *download = (OpnDownload *) udata;	uint8_t buf[2048];	int bytes;		if (net_sock_error(fd)) {		opn_download_free(download);		return;	}		if ((bytes = tcp_recv(download->con, buf, sizeof(buf))) <= 0)		opn_download_free(download);	OPN->chunk_write(OPN, download->chunk->transfer,	                 download->chunk, download->chunk->source,	                 buf, bytes);}