… | … | ||
---|---|---|---|
49 | { | 49 | { |
50 | pl->ob->contr = 0; | 50 | pl->ob->contr = 0; |
51 | pl->ob->destroy (); | 51 | pl->ob->destroy (); |
52 | } | 52 | } |
53 | 53 | ||
54 | if (pl->socket) | 54 | if (pl->ns) |
55 | { | 55 | { |
56 | pl->socket->pl = 0; | ||
57 | pl->socket->send_packet ("goodbye"); | 56 | pl->ns->send_packet ("goodbye"); |
57 | pl->ns->flush (); | ||
58 | pl->ns->pl = 0; | ||
58 | pl->socket->destroy (); | 59 | pl->ns->destroy (); |
59 | } | 60 | } |
60 | 61 | ||
61 | /* Clear item stack */ | 62 | /* Clear item stack */ |
62 | if (pl->stack_items) | 63 | if (pl->stack_items) |
63 | free (pl->stack_items); | 64 | free (pl->stack_items); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |