2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-09-13 20:13:19 +00:00
This commit is contained in:
2020-03-21 12:52:20 +03:00
parent c3ef064b19
commit 586088aad9
8 changed files with 112 additions and 81 deletions

View File

@@ -23,6 +23,8 @@ SOFTWARE.
*/
import 'dart:io';
import 'package:esyur/esyur.dart';
import 'ISocket.dart';
import '../../Data/DC.dart';
import '../NetworkBuffer.dart';
@@ -127,14 +129,14 @@ class TCPSocket extends ISocket
}).catchError((ex){
close();
rt.triggerError(ex);
rt.triggerError(AsyncException(ErrorType.Management, ExceptionCode.HostNotReachable.index, ex.toString()));
});
}
catch(ex)
{
rt.triggerError(ex);
rt.triggerError(AsyncException(ErrorType.Management, ExceptionCode.HostNotReachable.index, ex.toString()));
}
return rt;