Skip to content

Commit

Permalink
fix single instance bug
Browse files Browse the repository at this point in the history
  • Loading branch information
guanlisheng committed Aug 12, 2014
1 parent c2df3b1 commit 965de9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqliteplusframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ void wxSQLitePlusFrame::OnSrvSocketEvent(wxSocketEvent& event)
if (event.GetSocketEvent() == wxSOCKET_INPUT)
{
ev_sock = event.GetSocket();
ev_sock->SetFlags(wxSOCKET_BLOCK|wxSOCKET_NOWAIT);
ev_sock->SetFlags(wxSOCKET_BLOCK|wxSOCKET_WAITALL);
if (!ev_sock->Error())
{
len = ev_sock->ReadMsg(buffer, 1024 * sizeof(wxChar)).LastCount();
Expand Down

0 comments on commit 965de9f

Please sign in to comment.