diff --git a/xterm/lang/en b/xterm/lang/en
index b3c06dfc2..398fc9632 100644
--- a/xterm/lang/en
+++ b/xterm/lang/en
@@ -1,5 +1,5 @@
index_title=Interactive Shell
-index_cpan=The Perl module $1 needed to accept Websockets connections is not available, but you can install it automatically using Webmin's Perl Modules module.
+index_cpan=The Perl module $1 needed to accept WebSockets connections is not available, but you can install it automatically using Webmin's Perl Modules module.
index_euser=User $1 to run the shell as does not exist!
acl_user=Run shell as Unix user
diff --git a/xterm/shellserver.pl b/xterm/shellserver.pl
index e9407a86f..81b7e809e 100755
--- a/xterm/shellserver.pl
+++ b/xterm/shellserver.pl
@@ -38,7 +38,7 @@ Net::WebSocket::Server->new(
print STDERR "got websockets connection\n";
if ($wsconn) {
print STDERR "Too many connections to the same port!\n";
- &cleanup_miniserv();
+ &cleanup_miniserv();
kill('KILL', $pid) if ($pid);
exit(1);
}
@@ -69,7 +69,7 @@ Net::WebSocket::Server->new(
},
disconnect => sub {
print STDERR "websocket connection closed\n";
- &cleanup_miniserv();
+ &cleanup_miniserv();
kill('KILL', $pid) if ($pid);
exit(0);
}
@@ -80,10 +80,10 @@ Net::WebSocket::Server->new(
# Got something from the shell
my $buf;
my $ok = sysread($shellfh, $buf, 1);
- if ($ok <= 0) {
- &cleanup_miniserv();
- exit(0);
- }
+ if ($ok <= 0) {
+ &cleanup_miniserv();
+ exit(0);
+ }
if ($wsconn) {
$wsconn->send_binary($buf);
}