summaryrefslogtreecommitdiff
path: root/rotord/rotor.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-03-08 16:42:29 +0000
committerTim Redfern <tim@herge.(none)>2013-03-08 16:42:29 +0000
commitc09a3c040b43731196f59bac8046823f1f692e3e (patch)
tree0223f8c496ed6e6daba60af782f24ab34dbd3392 /rotord/rotor.cpp
parent8c4c5e62552dff244d2444a9d5d3a4585c89bc0a (diff)
graphwrangling
Diffstat (limited to 'rotord/rotor.cpp')
-rw-r--r--rotord/rotor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp
index 4a3d6c9..559e47c 100644
--- a/rotord/rotor.cpp
+++ b/rotord/rotor.cpp
@@ -75,10 +75,10 @@ Command_response Render_context::session_command(const std::vector<std::string>&
if (command.size()>2) {
if (state==IDLE) {
//check file exists
- //Poco::File f=Poco::File(command[3]);
+ Poco::File f=Poco::File(command[3]);
//std::auto_ptr<std::istream> pStr(URIStreamOpener::defaultOpener().open(command[3]));
- /*
+
if (f.exists()) {
//pass to worker thread ??if engine is ready?? ??what if engine has finished but results aren't read??
audio_filename=command[3]; //for now, store session variables in memory
@@ -89,7 +89,7 @@ Command_response Render_context::session_command(const std::vector<std::string>&
response.status=HTTPResponse::HTTP_NOT_FOUND;
response.description="<status context='"+command[1]+"'>File "+command[3]+" not found</status>\n";
}
- */
+
}
else {
response.status=HTTPResponse::HTTP_BAD_REQUEST;