Update Downloader.kt
closed the outputStream and edited a comment
This commit is contained in:
parent
df2b73f7bb
commit
fc620a3759
@ -506,7 +506,7 @@ class Downloader(
|
||||
}
|
||||
|
||||
/**
|
||||
* Data type for details.json
|
||||
* Data class for details.json
|
||||
*/
|
||||
@Serializable
|
||||
data class Details(
|
||||
@ -549,6 +549,7 @@ class Downloader(
|
||||
)
|
||||
}
|
||||
outputStream?.write(json.encodeToString(detailsData).toByteArray())
|
||||
outputStream?.close()
|
||||
} catch (e: Exception) {
|
||||
logcat(LogPriority.ERROR, e) { "Error creating details.json for ${manga.title}" }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user