File tree 2 files changed +2
-2
lines changed
src/java/net/jetrix/listeners
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public String getName()
49
49
public Client getClient (Socket socket ) throws Exception
50
50
{
51
51
TetrinetProtocol protocol = (TetrinetProtocol ) ProtocolManager .getInstance ().getProtocol (TetrinetProtocol .class );
52
- String init = protocol .readLine (new InputStreamReader (socket .getInputStream ()));
52
+ String init = protocol .readLine (new InputStreamReader (socket .getInputStream (), net . jetrix . config . ServerConfig . ENCODING ));
53
53
54
54
String dec = TetrinetProtocol .decode (init );
55
55
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public Client getClient(Socket socket) throws Exception
52
52
{
53
53
// read the first line sent by the client
54
54
TetrinetProtocol protocol1 = (TetrinetProtocol ) protocolManager .getProtocol (TetrinetProtocol .class );
55
- String init = protocol1 .readLine (new InputStreamReader (socket .getInputStream ()));
55
+ String init = protocol1 .readLine (new InputStreamReader (socket .getInputStream (), net . jetrix . config . ServerConfig . ENCODING ));
56
56
57
57
// test if the client is using the query protocol
58
58
Protocol protocol = protocolManager .getProtocol (QueryProtocol .class );
You can’t perform that action at this time.
0 commit comments