Fixed timeout errors params
This commit is contained in:
parent
462dfdafc8
commit
ebe8bc7bd3
@ -77,13 +77,13 @@ int writeTimeoutSeconds = 5.0;
|
|||||||
|
|
||||||
-(void)onOpenTimeout:(NSTimer *)timer {
|
-(void)onOpenTimeout:(NSTimer *)timer {
|
||||||
NSLog(@"[NATIVE] Open timeout: %d", openTimeoutSeconds);
|
NSLog(@"[NATIVE] Open timeout: %d", openTimeoutSeconds);
|
||||||
self.errorEventHandler(@"openTimeout", @"timeout");
|
self.errorEventHandler(@"Socket open timeout", @"openTimeout");
|
||||||
openTimer = nil;
|
openTimer = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void)onWriteTimeout:(NSTimer *)timer {
|
-(void)onWriteTimeout:(NSTimer *)timer {
|
||||||
NSLog(@"[NATIVE] Write timeout: %d", writeTimeoutSeconds);
|
NSLog(@"[NATIVE] Write timeout: %d", writeTimeoutSeconds);
|
||||||
self.errorEventHandler(@"writeTimeout", @"timeout");
|
self.errorEventHandler(@"Socket write timeout", @"writeTimeout");
|
||||||
writeTimer = nil;
|
writeTimer = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user