Merge pull request #11 from KoenLav/re-order-close
First close then invoke close event handler
This commit is contained in:
commit
62d86857b9
@ -76,8 +76,8 @@ public class SocketAdapterImpl implements SocketAdapter {
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
this.invokeCloseEventHandler(false);
|
||||
this.socket.close();
|
||||
this.invokeCloseEventHandler(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -266,8 +266,8 @@ int writeTimeoutSeconds = 5.0;
|
||||
}
|
||||
|
||||
- (void)close {
|
||||
self.closeEventHandler(FALSE);
|
||||
[self closeStreams];
|
||||
self.closeEventHandler(FALSE);
|
||||
}
|
||||
|
||||
- (void)closeStreams {
|
||||
|
@ -80,8 +80,8 @@ namespace Blocshop.ScoketsForCordova
|
||||
|
||||
public void Close()
|
||||
{
|
||||
this.CloseEventHandler(false);
|
||||
this.socket.Close();
|
||||
this.CloseEventHandler(false);
|
||||
}
|
||||
|
||||
private void StartReadTask()
|
||||
|
Loading…
Reference in New Issue
Block a user