Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Niechże Skunk nie rozkurwia serwera jak tylko stworzy

  • Loading branch information...
commit 24c3bd81d606f5bee12e2fa08afde43d811e2ffe 1 parent 0bfcb36
@tadzik authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 Skunk.cpp
  2. +1 −0  Skunk.hpp
View
4 Skunk.cpp
@@ -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
1  Skunk.hpp
@@ -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 *);
Please sign in to comment.
Something went wrong with that request. Please try again.