fix for use with xargs

This commit is contained in:
john30
2019-11-24 12:15:00 +01:00
parent 87b3705e3a
commit f15279815e
+3
View File
@@ -227,6 +227,9 @@ string fetchData(ebusd::TCPSocket* socket, bool listening) {
}
} else if (newInput) {
getline(cin, message);
if (message.length()==0) {
continue;
}
sendmessage = message+'\n';
socket->send(sendmessage.c_str(), sendmessage.size());