added the network check

This commit is contained in:
sathwikcs
2024-12-12 15:43:31 +05:30
parent cb628a684b
commit 71dfac73f6

View File

@@ -50,7 +50,7 @@ class NetworkMonitor @Inject constructor(
fun stopMonitoring() {
try {
connectivityManager.unregisterNetworkCallback(networkCallback)
} catch (e: IllegalArgumentException) {
} catch (_: IllegalArgumentException) {
}
networkScope.cancel()
}