first close stuff then say we closed it

This commit is contained in:
Niek125 2021-01-22 16:50:55 +01:00 committed by Koen Lavrijssen
parent b0034eee1c
commit 3d3297e147
2 changed files with 2 additions and 2 deletions

View File

@ -266,8 +266,8 @@ int writeTimeoutSeconds = 5.0;
} }
- (void)close { - (void)close {
self.closeEventHandler(FALSE);
[self closeStreams]; [self closeStreams];
self.closeEventHandler(FALSE);
} }
- (void)closeStreams { - (void)closeStreams {

View File

@ -80,8 +80,8 @@ namespace Blocshop.ScoketsForCordova
public void Close() public void Close()
{ {
this.CloseEventHandler(false);
this.socket.Close(); this.socket.Close();
this.CloseEventHandler(false);
} }
private void StartReadTask() private void StartReadTask()