diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2013-05-07 12:26:10 -0400 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2013-05-08 11:26:57 -0400 |
commit | 5fb3d2557ee37be4ce4f6eb041148d3eb922978a (patch) | |
tree | c88834d643266b97452ac3d4550a4f4feb133658 /server/main_dispatcher.c | |
parent | 20cc9567643dcd33166359fa2226ae15030939b3 (diff) |
reds: move handle_channel_event logic from main_dispatcher to reds
main_dispactcher role is to pass events to the main thread.
The logic that handles the event better not be inside main_dispatcher.
Diffstat (limited to 'server/main_dispatcher.c')
-rw-r--r-- | server/main_dispatcher.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/main_dispatcher.c b/server/main_dispatcher.c index 84024024..92b0791c 100644 --- a/server/main_dispatcher.c +++ b/server/main_dispatcher.c @@ -64,10 +64,7 @@ static void main_dispatcher_self_handle_channel_event( int event, SpiceChannelEventInfo *info) { - main_dispatcher.core->channel_event(event, info); - if (event == SPICE_CHANNEL_EVENT_DISCONNECTED) { - free(info); - } + reds_handle_channel_event(event, info); } static void main_dispatcher_handle_channel_event(void *opaque, |