diff options
| author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-06-23 16:28:24 +0000 | 
|---|---|---|
| committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-06-23 16:28:24 +0000 | 
| commit | 1c98e7cad6bf2665457455c04dcb9758a3011606 (patch) | |
| tree | edce678acf2d89ead1063d10642bbf483cbbb11f | |
| parent | 7d8dc82e027404d688639c0aea2909c131f221f4 (diff) | |
input: can't call input_device_close_channels if the device path doesn't exist
| -rw-r--r-- | input/server.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/input/server.c b/input/server.c index 19f5378c..c8e171f1 100644 --- a/input/server.c +++ b/input/server.c @@ -171,7 +171,7 @@ static gboolean connect_event(GIOChannel *chan, GIOCondition cond, gpointer data  	debug("Incoming connection on PSM %d", psm);  	if (input_device_set_channel(&src, &dst, psm, nsk) < 0) { -		input_device_close_channels(&src, &dst); +		close(nsk);  		return TRUE;  	} | 
