mirror of
https://github.com/deavmi/nostril
synced 2024-09-20 01:43:26 +02:00
Server
- Undid the check for data, I don't believe the `receiveTExt()` blocks forever?, We will Have to see
This commit is contained in:
parent
617a4507cc
commit
f7ec2321b6
@ -171,11 +171,6 @@ public class Connection : Fiber
|
|||||||
* thrown
|
* thrown
|
||||||
*/
|
*/
|
||||||
while(socket.connected() && !hadError)
|
while(socket.connected() && !hadError)
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Check if there is data received and then process it
|
|
||||||
*/
|
|
||||||
if(socket.dataAvailableForRead())
|
|
||||||
{
|
{
|
||||||
/* The received data */
|
/* The received data */
|
||||||
string data;
|
string data;
|
||||||
@ -203,7 +198,7 @@ public class Connection : Fiber
|
|||||||
{
|
{
|
||||||
logger.error("Error in handler");
|
logger.error("Error in handler");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user