summaryrefslogtreecommitdiff
path: root/libs/surfaces
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-06-07 18:02:04 +0200
committerRobin Gareus <robin@gareus.org>2013-06-07 18:02:04 +0200
commit6b19f5a444fc17372fab6c3450f86ef657dbc956 (patch)
treeb4c7d0e701d86117b0b1b10483d5db7df93034f7 /libs/surfaces
parent92161b57ad8eb65c5f3e265388c353d36ce20c8d (diff)
OSC bail out if server cannot be started
Diffstat (limited to 'libs/surfaces')
-rw-r--r--libs/surfaces/osc/osc.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index 9e80554f0b..4e80c4dad0 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -167,6 +167,10 @@ OSC::start ()
continue;
}
+ if (!_osc_server) {
+ return 1;
+ }
+
int fd = lo_server_get_socket_fd (_osc_server);
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);