diff options
-rw-r--r-- | plugins/MyDetails/src/data.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index 5b80f138ef..1bcb004409 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -120,11 +120,14 @@ bool Protocol::IsValid() return valid;
}
-
int Protocol::GetStatus()
{
int old_status = status;
- status = CallProtoService(name, PS_GETSTATUS, 0, 0);
+ INT_PTR iStatus = CallProtoService(name, PS_GETSTATUS, 0, 0);
+ if (iStatus == CALLSERVICE_NOTFOUND)
+ return status = ID_STATUS_OFFLINE;
+
+ status = (int)iStatus;
if (old_status != status)
data_changed = true;
|