diff options
| author | Darkelarious <darkelarious@333networks.com> | 2015-11-08 22:29:50 +0100 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2015-11-08 22:29:50 +0100 |
| commit | dc409b9cb6e92fd9ff9ef18ab2ca825bd247b419 (patch) | |
| tree | 7c4b6cc56d02012a58635abe0be987bbe7f28ec6 /lib/MasterServer/TCP/Syncer.pm | |
| parent | 8b3d393e7755c167eebe4d9f7fc786074f12e9af (diff) | |
| download | MasterServer-Perl-dc409b9cb6e92fd9ff9ef18ab2ca825bd247b419.tar.gz MasterServer-Perl-dc409b9cb6e92fd9ff9ef18ab2ca825bd247b419.zip | |
Access ciphers and games through database instead of keeping them in memory
Diffstat (limited to 'lib/MasterServer/TCP/Syncer.pm')
| -rwxr-xr-x | lib/MasterServer/TCP/Syncer.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
