only skip autopairing half the time for now

This commit is contained in:
Thibault Duplessis 2016-12-06 18:47:50 +01:00
parent e406b616fb
commit 0a768f9981

View file

@ -28,7 +28,7 @@ private[lobby] final class Lobby(
if (hook.realVariant.standard) lila.mon.lobby.hook.standardColor(hook.realMode.name, hook.color)()
HookRepo byUid hook.uid foreach remove
hook.sid ?? { sid => HookRepo bySid sid foreach remove }
if (!hook.compatibleWithPools) findCompatible(hook) foreach {
if (scala.util.Random.nextBoolean || !hook.compatibleWithPools) findCompatible(hook) foreach {
case Some(h) => self ! BiteHook(h.id, hook.uid, hook.user)
case None => self ! SaveHook(msg)
}