Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eea716
)
network: Fix for not adding connected socket if it was disconnected
author
Jerome St-Louis
<jerome@ecere.com>
Sat, 23 Feb 2013 22:31:38 +0000
(17:31 -0500)
committer
Jerome St-Louis
<jerome@ecere.com>
Sat, 23 Feb 2013 22:31:38 +0000
(17:31 -0500)
ecere/src/gui/GuiApplication.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/GuiApplication.ec
b/ecere/src/gui/GuiApplication.ec
index
8c66fc5
..
f41d366
100644
(file)
--- a/
ecere/src/gui/GuiApplication.ec
+++ b/
ecere/src/gui/GuiApplication.ec
@@
-1011,7
+1011,8
@@
public:
// printf("Calling OnConnect on %s\n", socket._class.name);
socket.OnConnect();
network.mutex.Wait();
- network.sockets.Add(socket);
+ if(socket._connected)
+ network.sockets.Add(socket);
}
gotEvent |= true;
goOn = true;