mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Merge pull request #161 from schrej/patch-1
only push stuff from the terminal outputQueue if there is something i…
This commit is contained in:
commit
b586feab2d
@ -326,7 +326,7 @@ $(window).load(function () {
|
||||
$('#consoleThrottled').addClass('hidden');
|
||||
}
|
||||
|
||||
for (var i = 0; i < {{ env('CONSOLE_PUSH_COUNT', 10) }}; i++)
|
||||
for (var i = 0; i < {{ env('CONSOLE_PUSH_COUNT', 10) }} && outputQueue.length > 0; i++)
|
||||
{
|
||||
terminal.echo(outputQueue[0]);
|
||||
outputQueue.shift();
|
||||
|
Loading…
Reference in New Issue
Block a user