diff options
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/exports.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/exports/exports.go b/exports/exports.go index c9ef41b..84cd571 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -86,7 +86,11 @@ func SetProfileID(data *C.char) *C.char { // Set current profile to id profile_id := C.GoString(data) - state.Server.Profiles.Current = profile_id + server, serverErr := state.Servers.GetCurrentServer() + if serverErr != nil { + return C.CString("No server found for setting a profile ID") + } + server.Profiles.Current = profile_id return C.CString("") } |
