Merge pull request #3374 from bogdanm/master

Don't send events on close()
pull/3128/merge
Martin Kojtal 2016-12-08 10:42:45 +01:00 committed by GitHub
commit 1b019c398b
6 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@
#include "mbed.h"
TCPServer::TCPServer()
: _pending(0), _accept_sem(0)
: _pending(1), _accept_sem(0)
{
}

View File

@ -46,7 +46,7 @@ public:
*/
template <typename S>
TCPServer(S *stack)
: _pending(0), _accept_sem(0)
: _pending(1), _accept_sem(0)
{
open(stack);
}

View File

@ -19,7 +19,7 @@
#include "mbed_assert.h"
TCPSocket::TCPSocket()
: _pending(0), _read_sem(0), _write_sem(0),
: _pending(1), _read_sem(0), _write_sem(0),
_read_in_progress(false), _write_in_progress(false)
{
}

View File

@ -45,7 +45,7 @@ public:
*/
template <typename S>
TCPSocket(S *stack)
: _pending(0), _read_sem(0), _write_sem(0),
: _pending(1), _read_sem(0), _write_sem(0),
_read_in_progress(false), _write_in_progress(false)
{
open(stack);

View File

@ -19,7 +19,7 @@
#include "mbed_assert.h"
UDPSocket::UDPSocket()
: _pending(0), _read_sem(0), _write_sem(0)
: _pending(1), _read_sem(0), _write_sem(0)
{
}

View File

@ -45,7 +45,7 @@ public:
*/
template <typename S>
UDPSocket(S *stack)
: _pending(0), _read_sem(0), _write_sem(0)
: _pending(1), _read_sem(0), _write_sem(0)
{
open(stack);
}