From dc409b9cb6e92fd9ff9ef18ab2ca825bd247b419 Mon Sep 17 00:00:00 2001 From: Darkelarious Date: Sun, 8 Nov 2015 22:29:50 +0100 Subject: Access ciphers and games through database instead of keeping them in memory --- lib/MasterServer/TCP/Syncer.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/MasterServer/TCP/Syncer.pm') diff --git a/lib/MasterServer/TCP/Syncer.pm b/lib/MasterServer/TCP/Syncer.pm index 69025f0..2ba52ca 100755 --- a/lib/MasterServer/TCP/Syncer.pm +++ b/lib/MasterServer/TCP/Syncer.pm @@ -126,10 +126,10 @@ sub process_sync_list { # iterate through the gamenames and addresses while ( my ($gn,$addr) = each %r) { - # only process gamenames that are in our list for supported games (supportedgames.pl) - if (defined $gn && exists $self->{game}->{lc $gn}) { + # process all games wether we have a cipher for them. + if (defined $gn) { - # database types such as SQLite are slow, therefore use transactions. + # some database types, such as SQLite, are slow - therefore use transactions. $self->{dbh}->begin_work; # l(ocations, \label\ip:port\) split up in a(ddress) and p(ort) -- cgit v1.2.3