Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit b25510b

Browse files
beepscorepkyeck
authored andcommitted
Instantiate errorInfo NSMutableDictionary using mutableCopy as suggested by Elshad. close #125.
1 parent 92d71e7 commit b25510b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SocketIO.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,8 @@ - (void) connection:(NSURLConnection *)connection didFailWithError:(NSError *)er
676676
_isConnecting = NO;
677677

678678
if ([_delegate respondsToSelector:@selector(socketIO:onError:)]) {
679-
NSMutableDictionary *errorInfo = [NSDictionary dictionaryWithObject:error forKey:NSLocalizedDescriptionKey];
679+
NSMutableDictionary *errorInfo = [[NSDictionary dictionaryWithObject:error
680+
forKey:NSLocalizedDescriptionKey] mutableCopy];
680681

681682
NSError *err = [NSError errorWithDomain:SocketIOError
682683
code:SocketIOHandshakeFailed

0 commit comments

Comments
 (0)