mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -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)
|
||||
{
|
||||
item->write(xmlWriter);
|
||||
socket->flush();
|
||||
if (deleteItem)
|
||||
delete item;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue