mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix problem with network connections timing out frequently. Turns out
there's a race condition - and the extra work forge does causes it to happen much more frequently than vanilla (though I'm sure it's a vanilla issue). Closes #6124, #5767 and probably lots more. Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
1 file changed
+9
@@ -16,6 +16,15 @@
|
||||
|
||||
try {
|
||||
this.func_150723_a(ProtocolType.HANDSHAKING);
|
||||
@@ -173,7 +175,7 @@
|
||||
++this.field_211395_r;
|
||||
if (protocoltype1 != protocoltype) {
|
||||
field_150735_g.debug("Disabled auto read");
|
||||
- this.field_150746_k.config().setAutoRead(false);
|
||||
+ this.field_150746_k.eventLoop().execute(()->this.field_150746_k.config().setAutoRead(false));
|
||||
}
|
||||
|
||||
if (this.field_150746_k.eventLoop().inEventLoop()) {
|
||||
@@ -257,7 +259,9 @@
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
|
||||
Reference in new issue
Block a user