mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
Merge pull request #656 from jgillich/fix-ec
Fix queueProcessor running on system thread
This commit is contained in:
commit
18fa6aac98
|
|
@ -2,7 +2,6 @@ package net.psforever.actors.net
|
||||||
|
|
||||||
import java.net.InetSocketAddress
|
import java.net.InetSocketAddress
|
||||||
import java.security.{SecureRandom, Security}
|
import java.security.{SecureRandom, Security}
|
||||||
|
|
||||||
import akka.actor.Cancellable
|
import akka.actor.Cancellable
|
||||||
import akka.actor.typed.{ActorRef, ActorTags, Behavior, PostStop, Signal}
|
import akka.actor.typed.{ActorRef, ActorTags, Behavior, PostStop, Signal}
|
||||||
import akka.actor.typed.scaladsl.{ActorContext, Behaviors}
|
import akka.actor.typed.scaladsl.{ActorContext, Behaviors}
|
||||||
|
|
@ -34,6 +33,7 @@ import net.psforever.packet.game.{ChangeFireModeMessage, CharacterInfoMessage, K
|
||||||
import scodec.Attempt.{Failure, Successful}
|
import scodec.Attempt.{Failure, Successful}
|
||||||
import scodec.bits.{BitVector, ByteVector, HexStringSyntax}
|
import scodec.bits.{BitVector, ByteVector, HexStringSyntax}
|
||||||
import scodec.interop.akka.EnrichedByteVector
|
import scodec.interop.akka.EnrichedByteVector
|
||||||
|
|
||||||
import javax.crypto.spec.SecretKeySpec
|
import javax.crypto.spec.SecretKeySpec
|
||||||
import net.psforever.packet.PacketCoding.CryptoCoding
|
import net.psforever.packet.PacketCoding.CryptoCoding
|
||||||
import net.psforever.util.{DiffieHellman, Md5Mac}
|
import net.psforever.util.{DiffieHellman, Md5Mac}
|
||||||
|
|
@ -42,7 +42,7 @@ import scodec.Attempt
|
||||||
|
|
||||||
import scala.collection.mutable
|
import scala.collection.mutable
|
||||||
import scala.collection.mutable.ListBuffer
|
import scala.collection.mutable.ListBuffer
|
||||||
import scala.concurrent.ExecutionContextExecutor
|
import scala.concurrent.{ExecutionContext, ExecutionContextExecutor}
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
|
|
||||||
/** MiddlewareActor sits between the raw UDP socket and the "main" actors (either login or session) and handles
|
/** MiddlewareActor sits between the raw UDP socket and the "main" actors (either login or session) and handles
|
||||||
|
|
@ -90,6 +90,7 @@ class MiddlewareActor(
|
||||||
import MiddlewareActor._
|
import MiddlewareActor._
|
||||||
|
|
||||||
implicit val ec: ExecutionContextExecutor = context.executionContext
|
implicit val ec: ExecutionContextExecutor = context.executionContext
|
||||||
|
implicit val executor: ExecutionContext = context.executionContext
|
||||||
|
|
||||||
private[this] val log = org.log4s.getLogger
|
private[this] val log = org.log4s.getLogger
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue