Fixed image API request closing prematurely, disabled music commands in production, various fixes regarding direct messages, fixed reply image checking, and removed yoda
This commit is contained in:
parent
7a254a5139
commit
8a2d4e6669
16 changed files with 57 additions and 52 deletions
|
@ -157,9 +157,12 @@ if (isMainThread) {
|
|||
|
||||
log(`${job.uuid} is done`, job.threadNum);
|
||||
const server = net.createServer(function(socket) {
|
||||
socket.write(Buffer.concat([Buffer.from(type ? type : "image/png"), Buffer.from("\n"), data]));
|
||||
socket.end();
|
||||
process.exit();
|
||||
socket.write(Buffer.concat([Buffer.from(type ? type : "image/png"), Buffer.from("\n"), data]), (err) => {
|
||||
if (err) console.error(err);
|
||||
socket.end(() => {
|
||||
process.exit();
|
||||
});
|
||||
});
|
||||
});
|
||||
server.listen(job.port, job.addr);
|
||||
// handle address in use errors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue