Skip to content

Commit

Permalink
Merge pull request #79 from rahimklaber/fix_dispatcher_main
Browse files Browse the repository at this point in the history
Use Default dispatcher instead of Main in Community scope.
  • Loading branch information
InvictusRMC authored Feb 7, 2025
2 parents a7d758a + 6a40fa2 commit 2c5fab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipv8/src/main/java/nl/tudelft/ipv8/Community.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ abstract class Community : Overlay {
network.blacklist.addAll(DEFAULT_ADDRESSES)

job = SupervisorJob()
scope = CoroutineScope(Dispatchers.Main + job)
scope = CoroutineScope(Dispatchers.Default + job)

if (evaProtocolEnabled)
evaProtocol = EVAProtocol(this, scope)
Expand Down

0 comments on commit 2c5fab9

Please sign in to comment.