1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Set no blocking delay to 100ms

This commit is contained in:
James Booth 2012-10-05 00:42:02 +01:00
parent a6467e17c7
commit 8ecd93049f
2 changed files with 5 additions and 3 deletions

View File

@ -110,7 +110,7 @@ inp_clear(void)
void
inp_non_block(void)
{
wtimeout(inp_win, 20);
wtimeout(inp_win, 100);
}
void

View File

@ -55,11 +55,13 @@ prof_run(const int disable_tls, char *log_level)
GTimer *timer = g_timer_new();
gboolean cmd_result = TRUE;
while(cmd_result == TRUE) {
int ch = ERR;
char inp[INP_WIN_MAX];
int size = 0;
while(cmd_result == TRUE) {
int ch = ERR;
size = 0;
while(ch != '\n') {
gdouble elapsed = g_timer_elapsed(timer, NULL);