diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-01-25 17:13:03 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-01-25 17:13:03 +0000 |
| commit | 728da707c6d3dc49f2c8609fbd14053904b7277b (patch) | |
| tree | cc3a4d9d4e948c06f1b46d0d15938bcd55469840 /src/control.zig | |
| parent | document configuration in README.md (diff) | |
| download | glsl-view-728da707c6d3dc49f2c8609fbd14053904b7277b.tar.gz glsl-view-728da707c6d3dc49f2c8609fbd14053904b7277b.zip | |
fix OSC server creation error handling
Diffstat (limited to 'src/control.zig')
| -rw-r--r-- | src/control.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/control.zig b/src/control.zig index 1a80147..3d36d8f 100644 --- a/src/control.zig +++ b/src/control.zig @@ -32,7 +32,9 @@ pub const ControlServer = struct { }, else => unreachable, } - + + if (self.server == null) + return error.serverInitializationError; _ = c.lo_server_add_method(self.server, null, null, handle_method, @ptrCast(*c_void, self)); return self; |
