--- trunk/FlisServer/FlisServerDlg.cpp 2007/12/04 17:32:44 149 +++ trunk/FlisServer/FlisServerDlg.cpp 2007/12/05 11:54:09 158 @@ -471,7 +471,7 @@ AppendText(tekst); } } - Sleep(5); //Small delay to avoid busy wait + Sleep(10); //Small delay to avoid busy wait } Sleep(100); //Give the modem a chance to send the last data while(Serial.getComstat().cbInQue > 0) @@ -741,6 +741,7 @@ CString SQL, Textwindow; SQL.Format("update command set executed=now() where id=%s",IDnr); db.ExecuteSQL(SQL); + Sleep(10); AppendText("Command executed"); } Sleep(150);