diff options
Diffstat (limited to 'src/surface/vnc.c')
-rw-r--r-- | src/surface/vnc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/surface/vnc.c b/src/surface/vnc.c index eb32560..ca9455b 100644 --- a/src/surface/vnc.c +++ b/src/surface/vnc.c @@ -497,7 +497,13 @@ static bool vnc_input(nsfb_t *nsfb, nsfb_event_t *event, int timeout) event->value.controlcode = NSFB_CONTROL_TIMEOUT; ret = rfbProcessEvents(vncscreen, timeout * 1000); - return true; + if (ret == 0) { + /* valid event */ + return true; + + } + + /* connection error occurred */ } return false; |