diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-18 18:19:15 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-18 18:19:15 +0000 |
commit | 959b9ac1e8f00fbba70747041aad674dff3ba181 (patch) | |
tree | 16814719f4e6ef24025de103e471ce476fdc3c1f /lib | |
parent | c28e1bf6b01b8e1d082d8df8861c65db3be42b3e (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ChangeLog | 2 | ||||
-rw-r--r-- | lib/VNDB/Util/Tools.pm | 2 |
2 files changed, 3 insertions, 1 deletions
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}} ); |