Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit f439a20d authored by tobiasKaminsky's avatar tobiasKaminsky
Browse files

Close body only if body exists

parent 903d50f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ abstract class OkHttpMethodBase(var uri: String,
    }

    fun releaseConnection() {
        response.close()
        response.body()?.close()
    }

    fun getStatusCode(): Int {