Skip to content

Commit

Permalink
Fixed optional missing display when --naked to resolve #875.
Browse files Browse the repository at this point in the history
Free Software Free Society

To increase the frequency of commits by ctubio,
you can buy-me-a-drink with a small git-tip at:
  1GitTipB6sY2YSbkH3BJHepUB7Cjymi9R1

To force me to write more source documentation,
you can buy-me-a-drink with a small doc-tip at:
  1KDocsmbhUEh7JgmYjuMH3nDivzSM6dphP

I promise to drink chocolate milk after commit.

To request new features or in case this commit breaks something for you,
please, create a new github issue with all possible information for me,
but never share your API Keys!

Signed-off-by: Carles Tubio <ctubio@users.noreply.github.com>
  • Loading branch information
ctubio committed Feb 7, 2019
1 parent f46b2b2 commit 213ab66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ K ?= K.sh
MAJOR = 0
MINOR = 4
PATCH = 12
BUILD = 18
BUILD = 19
SOURCE := $(notdir $(wildcard src/bin/*))
CARCH = x86_64-linux-gnu \
arm-linux-gnueabihf \
Expand Down
7 changes: 3 additions & 4 deletions src/lib/Krypto.ninja-bots.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ namespace ₿ {
unordered_map<char, function<void()>> hotFn;
public:
void hotkey(const char &ch, function<void()> fn) {
if (!keylogger.valid())
error("SH", string("Unable to set \"hotkey\" handler because display is a nullptr"));
if (!keylogger.valid()) return;
if (hotFn.find(ch) != hotFn.end())
error("SH", string("Too many handlers for \"") + ch + "\" hotkey event");
hotFn[ch] = fn;
Expand Down Expand Up @@ -640,7 +639,7 @@ namespace ₿ {
vector<uWS::Group<uWS::CLIENT>*> gw_clients;
vector<uWS::Group<uWS::SERVER>*> ui_servers;
private:
unordered_map<unsigned int, string> headers = {
const unordered_map<unsigned int, string> headers = {
{200, "HTTP/1.1 200 OK"
"\r\n" "Connection: keep-alive"
"\r\n" "Accept-Ranges: bytes"
Expand Down Expand Up @@ -677,7 +676,7 @@ namespace ₿ {
+ "\r\n" "Content-Length: " + to_string(content.length())
+ "\r\n"
"\r\n"
+ content;;
+ content;
};
uWS::Group<uWS::SERVER> *listen(
string &protocol,
Expand Down

0 comments on commit 213ab66

Please sign in to comment.