Skip to content

Commit e8f7f8d

Browse files
committed
Fix for re-calling Init() in iOS
1 parent 755bf21 commit e8f7f8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/socket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ void CSocket::SendPacket ( const CVector<uint8_t>& vecbySendBuf, const CHostAddr
433433

434434
#ifdef Q_OS_IOS
435435
// qDebug("Socket send exception - mostly happens in iOS when returning from idle");
436-
Init ( iPortNumber, iQosNumber, strServerBindIP ); // reinit
436+
Init ( iPortNumber, iQosNumber, strServerBindIP, !bIPv6Available ); // reinit
437437

438438
// loop back to retry
439439
#endif

0 commit comments

Comments
 (0)