Skip to content

Commit 96024a4

Browse files
authored
Merge pull request #626 from FJEagle/devel_pullrequest
Revert "Less strict mode detected violations"
2 parents 7a332d5 + b58a5e4 commit 96024a4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

serviceLibrary/src/main/java/info/mqtt/android/service/MqttConnection.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,8 @@ internal class MqttConnection(
364364
val message = MqttMessage(payload)
365365
message.qos = qos.value
366366
message.isRetained = retained
367-
CoroutineScope(Dispatchers.IO).launch {
368-
sendToken = myClient!!.publish(topic, payload, qos.value, retained, invocationContext, listener)
369-
storeSendDetailsInMemory(topic, message, sendToken, invocationContext, activityToken)
370-
}
367+
sendToken = myClient!!.publish(topic, payload, qos.value, retained, invocationContext, listener)
368+
storeSendDetailsInMemory(topic, message, sendToken, invocationContext, activityToken)
371369
} catch (e: Exception) {
372370
handleException(resultBundle, e)
373371
}

0 commit comments

Comments
 (0)