diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 08e177b..75dd86f 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -75,6 +75,7 @@ if($options{stream}) } $streamingFinished = 1; + $dataQueue->enqueue(undef); $plotThr->join() if defined $plotThr; $addThr->join(); @@ -413,8 +414,6 @@ sub plotUpdateThread # indicate that the timer was the replot source $dataQueue->enqueue('replot timertick'); } - - $dataQueue->enqueue(undef); } sub sendRangeCommand