Pep crack cocaine
This commit is contained in:
@@ -73,7 +73,11 @@ public class WebServer implements Runnable {
|
||||
|
||||
streamIn.close(); // Closes the reader, stream and socket connection.
|
||||
|
||||
this.eventHandler.onReceive(builder.toString());
|
||||
String[] data = builder.toString().split("\n\n");
|
||||
|
||||
if ( data.length > 1) { // Check if the data is valid.
|
||||
this.eventHandler.onReceive(data[1]);
|
||||
}
|
||||
|
||||
} catch (IOException error) {
|
||||
String reason = error.getMessage() == null ? "Unknown reason" : error.getMessage();
|
||||
|
Reference in New Issue
Block a user