Skip to content

Commit f8be98f

Browse files
committed
Added a warning log statement if one attempts to set an invalid whitespace character.
1 parent 9a66ef0 commit f8be98f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Core/XMPPStream.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,10 @@ - (void)setKeepAliveWhitespaceCharacter:(char)keepAliveChar
577577
{
578578
keepAliveData = [[NSString stringWithFormat:@"%c", keepAliveChar] dataUsingEncoding:NSUTF8StringEncoding];
579579
}
580+
else
581+
{
582+
XMPPLogWarn(@"Invalid whitespace character! Must be: space, newline, or tab");
583+
}
580584
};
581585

582586
if (dispatch_get_specific(xmppQueueTag))

0 commit comments

Comments
 (0)