Handle null socket messages and add text coloring

main
sigonasr2, Sig, Sigo 3 years ago
parent f3e70a0218
commit 7241bd4aeb
  1. 4
      sigServer.java
  2. 1
      sitefiles/sig.css

@ -23,6 +23,7 @@ public class sigServer {
BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));
String line;
line=in.readLine(); //Read the first line, this should be our request.
if (line!=null) {
String[] splitter = line.split(Pattern.quote(" "));
if (splitter.length==3) {
//This is valid.
@ -54,7 +55,8 @@ public class sigServer {
while (!(line=in.readLine()).isBlank()) {
//System.out.println(line);
}
} catch(SocketException e) {
}
} catch(SocketException|NullPointerException e) {
e.printStackTrace();
}
}

@ -48,6 +48,7 @@
body{
font-family: Garamond, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color:$SITE_BACKCOL;
color: #991199;
}
.content{

Loading…
Cancel
Save