From 6b9575013ba33d7f469781fa9390bfe0585cc4c8 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 5 Jul 2011 22:08:15 +0200 Subject: [PATCH] Revert "allow change of alphasign even while streaming" This reverts commit adaaad8084e3b1f4ad81c1f069aa11c8cbd61aa1. --- brmd/brmd.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/brmd/brmd.pl b/brmd/brmd.pl index b5a13c4..8f95f7c 100755 --- a/brmd/brmd.pl +++ b/brmd/brmd.pl @@ -286,7 +286,7 @@ sub web_index { my $astext = $alphasign->last_text_escaped(); my $a_link = ''; - $a_link .= 'change'; + $streaming or $a_link .= 'change'; $response->content(< @@ -455,8 +455,10 @@ sub web_alphasign_set { my $text = $q->param('text'); my $beep = $q->param('beep'); - $poe_kernel->post($alphasign, 'text', $mode, $text); - $beep and $poe_kernel->post($alphasign, 'beep'); + if (not $streaming) { + $poe_kernel->post($alphasign, 'text', $mode, $text); + $beep and $poe_kernel->post($alphasign, 'beep'); + } $response->protocol("HTTP/1.1"); $response->code(302);