Skip to content

Commit 2c5fab9

Browse files
authored
Merge pull request #79 from rahimklaber/fix_dispatcher_main
Use Default dispatcher instead of Main in Community scope.
2 parents a7d758a + 6a40fa2 commit 2c5fab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipv8/src/main/java/nl/tudelft/ipv8/Community.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ abstract class Community : Overlay {
7373
network.blacklist.addAll(DEFAULT_ADDRESSES)
7474

7575
job = SupervisorJob()
76-
scope = CoroutineScope(Dispatchers.Main + job)
76+
scope = CoroutineScope(Dispatchers.Default + job)
7777

7878
if (evaProtocolEnabled)
7979
evaProtocol = EVAProtocol(this, scope)

0 commit comments

Comments
 (0)