mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 19:13:55 -07:00
added flush call
This commit is contained in:
parent
fd828986e5
commit
069fbe8dae
1 changed files with 1 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ void ServerSocketInterface::catchSocketError(QAbstractSocket::SocketError socket
|
||||||
void ServerSocketInterface::sendProtocolItem(ProtocolItem *item, bool deleteItem)
|
void ServerSocketInterface::sendProtocolItem(ProtocolItem *item, bool deleteItem)
|
||||||
{
|
{
|
||||||
item->write(xmlWriter);
|
item->write(xmlWriter);
|
||||||
|
socket->flush();
|
||||||
if (deleteItem)
|
if (deleteItem)
|
||||||
delete item;
|
delete item;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue