Commit b3282523 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

remoteosd: small simplification

parent fc5b6ff9
...@@ -615,13 +615,13 @@ static void* vnc_worker_thread( void *obj ) ...@@ -615,13 +615,13 @@ static void* vnc_worker_thread( void *obj )
} }
/* connection is initialized, now read and handle server messages */ /* connection is initialized, now read and handle server messages */
vlc_restorecancel (canc);
for( ;; ) for( ;; )
{ {
rfbServerToClientMsg msg; rfbServerToClientMsg msg;
int i_msgSize; int i_msgSize;
memset( &msg, 0, sizeof(msg) ); memset( &msg, 0, sizeof(msg) );
vlc_restorecancel (canc);
if( !read_exact(p_filter, fd, &msg, 1 ) ) if( !read_exact(p_filter, fd, &msg, 1 ) )
{ {
...@@ -666,9 +666,7 @@ static void* vnc_worker_thread( void *obj ) ...@@ -666,9 +666,7 @@ static void* vnc_worker_thread( void *obj )
canc = vlc_savecancel (); canc = vlc_savecancel ();
process_server_message( p_filter, &msg); process_server_message( p_filter, &msg);
vlc_restorecancel (canc);
} }
canc = vlc_savecancel ();
if( polling ) if( polling )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment