Mercurial > hg > audiodb
comparison soap.cpp @ 338:cdb31e8b94e3
fixed startServer() reporting of non-locatable database or index. Achieved by setting isServer=1 AFTER checking database and loading INDEX.
author | mas01mc |
---|---|
date | Fri, 05 Sep 2008 16:40:41 +0000 |
parents | 100cf66a5825 |
children | 30384a82983a |
comparison
equal
deleted
inserted
replaced
337:ccf15a8c3e46 | 338:cdb31e8b94e3 |
---|---|
396 // Server-side path prefix to databases and features | 396 // Server-side path prefix to databases and features |
397 if(adb_root) | 397 if(adb_root) |
398 SERVER_ADB_ROOT = (char*)adb_root; // Server-side database root | 398 SERVER_ADB_ROOT = (char*)adb_root; // Server-side database root |
399 if(adb_feature_root) | 399 if(adb_feature_root) |
400 SERVER_ADB_FEATURE_ROOT = (char*)adb_feature_root; // Server-side features root | 400 SERVER_ADB_FEATURE_ROOT = (char*)adb_feature_root; // Server-side features root |
401 | 401 |
402 isServer = 1; // From this point, errors are reported via SOAP to the client | |
402 for (int i = 1; ; i++) | 403 for (int i = 1; ; i++) |
403 { | 404 { |
404 s = soap_accept(&soap); | 405 s = soap_accept(&soap); |
405 if (s < 0) | 406 if (s < 0) |
406 { | 407 { |