From 959b9ac1e8f00fbba70747041aad674dff3ba181 Mon Sep 17 00:00:00 2001 From: yorhel Date: Mon, 18 Aug 2008 18:19:15 +0000 Subject: No need to access Multi's shared memory when you don't do anything with it... git-svn-id: svn://vndb.org/vndb@96 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b --- lib/ChangeLog | 2 ++ lib/VNDB/Util/Tools.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 7bd2becc..c08da23a 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -9,6 +9,8 @@ TODO: 1.22 - ? - Inverted vote graph - Relation graph image maps are now stored in the DB + - Properly fixed the command synchronisation issues with Multi + - Fixed display of wrong ID in the screenshot diff 1.21 - 2008-08-16 (r90) - Added !vn and !uptime commands to Multi::IRC diff --git a/lib/VNDB/Util/Tools.pm b/lib/VNDB/Util/Tools.pm index 9579e2c9..8fe918d0 100644 --- a/lib/VNDB/Util/Tools.pm +++ b/lib/VNDB/Util/Tools.pm @@ -156,7 +156,7 @@ sub RunCmd { # cmd my($self, $c) = @_; if($c) { push @{$self->{cmds}}, $c; - } else { + } elsif(@{$self->{cmds}}) { my $s = tie my %s, 'Tie::ShareLite', @VNDB::SHMOPTS; $s->lock(LOCK_EX); my @q = ( ($s{queue} ? @{$s{queue}} : ()), @{$self->{cmds}} ); -- cgit v1.2.3