aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt')
-rw-r--r--app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
index da61f75..07a6eca 100644
--- a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
+++ b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/Download.kt
@@ -9,11 +9,11 @@ class Download: Runnable {
public var size: Int
public var downloaded: Int
public var contentLength: Int
+ public var status: Status
private final val MAX_BUFFER_SIZE: Number = 1024
private var url: URL
- private var status: Status
constructor (url: URL) {
this.url = url
@@ -23,10 +23,6 @@ class Download: Runnable {
contentLength = 1
}
- public fun status(): Status {
- return status
- }
-
public fun start() {
val thread = Thread(this)
thread.start()