Skip to content

Commit

Permalink
GlobalScope 없애기
Browse files Browse the repository at this point in the history
  • Loading branch information
JuTaK97 committed Sep 13, 2023
1 parent 9a03e8b commit 406e721
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import com.wafflestudio.snutt2.lib.android.MessagingError
import com.wafflestudio.snutt2.lib.android.runOnUiThread
import com.wafflestudio.snutt2.lib.network.call_adapter.ErrorParsedHttpException
import dagger.hilt.android.qualifiers.ApplicationContext
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import okio.IOException
Expand Down Expand Up @@ -142,7 +142,7 @@ class ApiOnError @Inject constructor(
context.getString(R.string.error_wrong_user_token),
Toast.LENGTH_SHORT,
).show()
GlobalScope.launch {
CoroutineScope(Dispatchers.IO).launch {
try {
userRepository.postForceLogout()
userRepository.performLogout()
Expand Down

0 comments on commit 406e721

Please sign in to comment.