Skip to content

Commit

Permalink
Niechże Skunk nie rozkurwia serwera jak tylko stworzy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Jun 6, 2012
1 parent 0bfcb36 commit 24c3bd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Skunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,6 @@ CSGI::Response Skunk::Server::operator()(CSGI::Env& env) {
* Uruchamia server CSGI
* */
void Skunk::Server::run(bool async) {
CSGI::Server srv(this, 8080);
srv.run(async);
srv = new CSGI::Server(this, 8080);
srv->run(async);
}
1 change: 1 addition & 0 deletions Skunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ class Server : CSGI::Application {
std::map<std::string, std::string> sessions_;
Auth * auth_;
int nextID_;
CSGI::Server *srv;
public:
Server() : nextID_(0) { };
int addWidget(Widget *);
Expand Down

0 comments on commit 24c3bd8

Please sign in to comment.