forked from lix-project/hydra
hydra-notify: Fix processing notifications
This commit is contained in:
parent
7c7cc8c059
commit
72c36373bb
|
@ -96,8 +96,8 @@ my $sel = IO::Select->new($fd);
|
|||
|
||||
while (1) {
|
||||
$sel->can_read;
|
||||
my $notify = $dbh->func("pg_notifies");
|
||||
next if !$notify;
|
||||
|
||||
while (my $notify = $dbh->func("pg_notifies")) {
|
||||
|
||||
my ($channelName, $pid, $payload) = @$notify;
|
||||
#print STDERR "got '$channelName' from $pid: $payload\n";
|
||||
|
@ -120,3 +120,4 @@ while (1) {
|
|||
print STDERR "error processing message '$payload' on channel '$channelName': $@\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue