Commit 4214fedb authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Set a new list when adding the responses

This fixes a rare timing issue when the query was already cloned from waitingQueryLogs and is being inserted while the responses are added
parent 7a9e3b8a
Pipeline #5967 passed with stage
in 3 minutes and 3 seconds
......@@ -111,6 +111,7 @@ class QueryListener(private val context: Context) : QueryListener {
} ?: return
val wasInserted = queryLogState.remove(!! != 0 // Update if already inserted (0=insert)
query.responseTime = System.currentTimeMillis()
query.responses = mutableListOf()
for (answer in responseMessage.answerSection) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment