Fixed timeout errors params

This commit is contained in:
kitolog 2018-03-01 13:16:19 +03:00
parent 462dfdafc8
commit ebe8bc7bd3

View File

@ -77,13 +77,13 @@ int writeTimeoutSeconds = 5.0;
-(void)onOpenTimeout:(NSTimer *)timer {
NSLog(@"[NATIVE] Open timeout: %d", openTimeoutSeconds);
self.errorEventHandler(@"openTimeout", @"timeout");
self.errorEventHandler(@"Socket open timeout", @"openTimeout");
openTimer = nil;
}
-(void)onWriteTimeout:(NSTimer *)timer {
NSLog(@"[NATIVE] Write timeout: %d", writeTimeoutSeconds);
self.errorEventHandler(@"writeTimeout", @"timeout");
self.errorEventHandler(@"Socket write timeout", @"writeTimeout");
writeTimer = nil;
}