Permalink
Browse files

Niechże Skunk nie rozkurwia serwera jak tylko stworzy

  • Loading branch information...
1 parent 0bfcb36 commit 24c3bd81d606f5bee12e2fa08afde43d811e2ffe @tadzik committed Jun 6, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −2 Skunk.cpp
  2. +1 −0 Skunk.hpp
View
@@ -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);
}
View
@@ -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 *);

0 comments on commit 24c3bd8

Please sign in to comment.